I’m trying to enable shadow casting on a glb model, but when I add:
I get all these triangles, probably the shadow is shadowing the mesh itself. I don’t know. It looks like this:
How can I fix this?
I’m trying to enable shadow casting on a glb model, but when I add:
I get all these triangles, probably the shadow is shadowing the mesh itself. I don’t know. It looks like this:
How can I fix this?
Try:
light.shadow.bias = .0001
or
light.shadow.bias = -.0001
This is a common issue called “shadow acne”… you often have to tweak the shadow bias settings to make it work for the scale of the camera/scene you’re using.
Having it too low or 0 can cause the effect you’re seeing… Setting the bias too large results in a different issue where shadows seem to float, called “peter panning”