When I am running WebGPUEngine, if I turn on the needDepthPrePass property, I will get en error from system:
Compilation log for [ShaderModule "fragment"]:
1 warning(s) generated while compiling the shader:
:380:1 warning: code is unreachable
var baseAmbientColor: vec3f= vec3f(1.,1.,1.);
or like this:
Compilation log for [ShaderModule "fragment"]:
1 warning(s) generated while compiling the shader:
:877:10 warning: code is unreachable
baseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);
And When I change other properties, I will get these messages constantly.