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
I added some new warnings to engine (commented out for now), and it triggers this: Shader [Shader Id 0 standard] requires uniform [matrix_normal] which has not been set
When WebGL translates the shader for the platform, the uniform is not stripped out as dead code, but is compiled out on the driver level.
Ideally we'd change the shader generator to not include it to avoid - as we unnecessarily handle it. On WebGPU we need to allocate space for it in the uniform buffer as well.
When this is done, the warning should be enabled, as it's very helpful to have.
// Debug.warnOnce(`Shader [${shader.label}] requires uniform [${uniform.scopeId.name}] which has not been set, while rendering [${DebugGraphics.toString()}]`);
The text was updated successfully, but these errors were encountered:
This is a vertex shader we use to render to shadow map.
I added some new warnings to engine (commented out for now), and it triggers this:
Shader [Shader Id 0 standard] requires uniform [matrix_normal] which has not been set
When WebGL translates the shader for the platform, the uniform is not stripped out as dead code, but is compiled out on the driver level.
Ideally we'd change the shader generator to not include it to avoid - as we unnecessarily handle it. On WebGPU we need to allocate space for it in the uniform buffer as well.
When this is done, the warning should be enabled, as it's very helpful to have.
The text was updated successfully, but these errors were encountered: