Home Forums GAMES104 现代游戏引擎:从入门到实践 作业2 PA02 有用的信息合集 Reply To: 作业2 PA02 有用的信息合集

#11497 Score: 2
Arika Hoshino
Participant
3 pts

Games104 作业2【无限月读】
https://www.bilibili.com/video/BV1aZ4y1h7nE

bilibli用户“辞花与酒”的作业成果展示与思路

修改[rendering.global.json]加入图片
载入&初始化图片
添加后处理subpass
在pass中绑定input attachment,这里用了blend,需要在attachment state中指定blend mode
拓展ubo,将time/deltaTime作为自定义参数加入
将ubo作为Storage buffer dymanic在pass中绑定,注意更新perframe dynamic offset位置
新加vert shader,将uv (texcoord)作为参数传入frag shader
在shader中指定ubo的binding id并解析(注意vec4内存对齐)
其他————
因为editor的原因,uv需要做视口映射
防止radial blur采屏幕外像素,需要对sample uv做clamp

This post has received 2 votes up.