Passing all the rain pass configs through a giant struct into the rain shader. I've included the compute shader fields, because I have hope that the compute pass can use the same shader module.

This commit is contained in:
Rezmason
2021-10-30 12:53:26 -07:00
parent 1516f82554
commit cc75938fcb
4 changed files with 168 additions and 55 deletions

View File

@@ -4,12 +4,10 @@ WebGPU
First decent rainRender
Port render pass 100%
For now, use noise instead of the data texture
Get all the uniforms in
Categorize them into buffers
Port compute pass 100%
Compute entry point can live in the same wgsl file, I think
More uniforms! Categorize!
use textureLoad for texel access in render pipeline
Reorder the config fields
Render target
Resize accordingly
Put in its own module