A silly shadowing question that I look some insight into. I have a point light set up to my game main character, so I can get cool looking shadows from the corners and when I peek into rooms that are dark! Spooky…
As you can see, I’m missing a part of the shadow! The corner model has a baseboard (dark part) that is pretty much not shadowed at all. I think this is just some configuration issue on my part, but I can’t quite grasp on what is going on. More to that, the inspector doesn’t have all the shadow hinges for me to pull around to see where the problem might be
I kind of feel like that css debug gif with the shadows right now:
Here is my point light setup (parented to the character of course):
const frontSpotLight = new SpotLight(
'playerLight',
new Vector3(0, 1.1, 0.1),
new Vector3(0, 0, 1),
180,
1,
scene
)
frontSpotLight.radius = 30
frontSpotLight.falloffType = PointLight.FALLOFF_GLTF
frontSpotLight.diffuse = new Color3(1, 1, 1)
frontSpotLight.intensity = 3
frontSpotLight.range = 10
Can’t provide a link yet to the full game, I will probably do a playground later on if someone doesn’t have a clue what could be the issue before that
Could this have something to do with the Mesh.MergeMeshes? Since I am using that to combine different cloned meshes, the shadow kind of cuts from the end of the corner piece…