jinleili / learn-wgpu-zh

Learn wgpu 中文版
https://jinleili.github.io/learn-wgpu-zh/
MIT License
353 stars 21 forks source link

能否将深度缓冲区章节的challenge实现换为使用普通sampler对深度纹理进行采样 #5

Closed wefcdse closed 1 year ago

wefcdse commented 1 year ago

现在的代码只画出了所有的五边形实例的位置,而没有画出深度

屏幕截图 2023-03-13 111224 屏幕截图 2023-03-13 111442
wefcdse commented 1 year ago

图1:直接运行 图2:改了sampler之后

jinleili commented 1 year ago

欢迎提交代码 :)

wefcdse commented 1 year ago

:)