You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Fix Occlusion Culling not working for an orthogonal camera.
This commit is contained in:
@@ -84,7 +84,7 @@ public:
|
||||
Vector3 view = p_cam_inv_transform.xform(corner);
|
||||
|
||||
if (p_cam_projection.is_orthogonal()) {
|
||||
min_depth = MIN(min_depth, view.z);
|
||||
min_depth = MIN(min_depth, -view.z);
|
||||
}
|
||||
|
||||
Plane vp = Plane(view, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user