How to link light with camera rotation to make shadows static?

Hi everyone,

I would like to connect the light to the camera rotation, so that when you rotate the object (= orbit the camera) the light seems to be fixated in one place (and the shadows are projected from one point and don’t ‘stick’ to the object).

I have setup a scene in which I have set the light as a child of the camera:

https://playground.babylonjs.com/#0TG0TB#34

but now I can’t choose my light’s position :relaxed:

No matter what I input for the light position, the shadows stay in the same location.

I hope anyone can help, many thanks!

Hey

you are using a directional light (which is a direction). I feel like you need to use a point light instead

1 Like

Oh god, the shame! :pensive: :nauseated_face: Thanks! I never thought of that.