pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

Fixed DirectionalLight update_bounds not being set in look_at and shadows being set with a delay in init. #722

Closed Squigglecito closed 2 months ago

Squigglecito commented 2 months ago

This fixes some issues where calling update_bounds during initialization of a scene would not respect the user's choice of bounds entity due to the invoke delay settings shadows which sets the bounds to the scene. In addition, look_at needs to update the bounds as it changes the viewing direction of the shadow camera (changing the frustum bounds).