mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix Occlusion Culling not working for an orthogonal camera.
This commit is contained in:
parent
61accf0605
commit
76c20383d1
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue