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
While working on ShadowMapViewer I have noticed that flat shaded objects that receive shadow produce a WGSL error which is logged in the browser console as a warning.
Error while parsing WGSL: :87:33 error: built-in cannot be used by vertex pipeline stage
normalFlat = normalize( cross( dpdx( varyings.v_positionView ), - dpdy( varyings.v_positionView ) ) );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The screen also gets white so nothing is rendered.
Commenting out mesh.receiveShadow = true;or disable flat shading fixes the issue.
Description
While working on
ShadowMapViewer
I have noticed that flat shaded objects that receive shadow produce a WGSL error which is logged in the browser console as a warning.The screen also gets white so nothing is rendered.
Commenting out
mesh.receiveShadow = true;
or disable flat shading fixes the issue.Reproduction steps
Live example
Version
r168
Device
Desktop, Mobile, Headset
Browser
Chrome
OS
MacOS
The text was updated successfully, but these errors were encountered: