McManning / Coherence

Blender viewport renderer using the Unity Engine
MIT License
30 stars 0 forks source link

Orthogonal camera culls nearby objects #25

Open McManning opened 3 years ago

McManning commented 3 years ago

When zooming in/out with an orthogonal camera, objects are culled improperly. This is because the camera position is also moving towards/away from origin (not just .orthogonalSize changes) which will cause objects to be behind the camera.

Need to figure out a better algorithm for this to position the camera, update .orthogonalSize, and still keep it accurate to Blender's viewport.

Note that this also seems to be standard Unity behaviour in the scene view for most cameras.