I am currently utilizing threejs
to showcase an object and using OrbitControls
to manage the movement of the scene with my mouse. Additionally, my scene features a DirectionalLight
.
Initially, when the scene is rendered, the DirectionalLight
illuminates my object as anticipated. However, upon making modifications to the scene by rotating it using my mouse, the DirectionalLight
source fails to update and illuminate the object from the new angle as expected.
I am seeking guidance on how to update my scene so that the light adjusts based on my rotation using OrbitControls
. Can someone provide assistance with this issue?