You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with glslang and webgpu I had a problem when working with depth textures.
On webgl used sampler2D, but for webgpu need to use the texture_deptkh_2d format.
For color textures I change the line: uniform sampler2D texture ;
When working with glslang and webgpu I had a problem when working with depth textures.
On webgl used sampler2D, but for webgpu need to use the texture_deptkh_2d format.
For color textures I change the line:
uniform sampler2D texture ;
into these lines:
I tried using sampler2DShadow and it didn't do anything
Is there some way in glslang that the texture is used as a depth texture?
The text was updated successfully, but these errors were encountered: