Open mkvenkit opened 1 month ago
buffer0
andbuffer1
in main.ts are associated withflip
in the the shader, but where are these buffers being written to? I didn't see associated buffer write calls.
They are set when they are created using mappedAtCreation
, calling getMappedRange()
, setting the value, and then unmap
ing.
buffer0
is just a buffer with 0 in itbuffer1
is just a buffer with 1 in itOne or the other is bound to flip. Bind buffer0
to not flip, bind buffer1
to flip. They don't need to be updated.
samp
seems unused in the shader.
samp
is used, line 52 of blur.wsgl
cubeTexture
- naming is a little confusing.
Agreed. Will rename
They are set when they are created using mappedAtCreation, calling getMappedRange(), setting the value, and then unmaping.
Sorry, missed that. Thanks for the quick response!
Thanks for the interesting sample!
I noticed these minor issues:
buffer0
andbuffer1
in main.ts are associated withflip
in the the shader, but where are these buffers being written to? I didn't see associated buffer write calls.samp
seems unused in the shader.cubeTexture
- naming is a little confusing.