stuffmattdoes / mech-game

0 stars 0 forks source link

Toon Shader Shadow Artifacts #4

Open stuffmattdoes opened 12 months ago

stuffmattdoes commented 12 months ago

Weird artifacts in the shadows for toon shaders.

Things to check:

Recommendations

Image

Image

stuffmattdoes commented 12 months ago

Appears related to shadow.bias property of DirectionalLight Setting value to small decimal fixes it; however, shadows are left offset from their object

Image

Image

stuffmattdoes commented 12 months ago

Looks to be a bug in Three.js. PR if I fix it Shader link here