Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.0f2
2019.2.0a1
2019.3.0a1
Issue ID
1156517
Regression
No
Frustum culling is incorrect when using a custom culling matrix
How to reproduce:
1. Open attached project "cullingbug.zip" and scene "main"
2. Enter Play mode
3. In Hierarchy window, select "Main Camera" object
4. In Inspector window -> "Cull Test (Script)" -> enable "Custom Culling"
5. In Inspector window -> "Cull Test (Script)" -> set "Culling Rotation" to 90
6. Observe the Game View cubes
Expected result: custom culling matrix completely overrides camera frustum culling
Actual result: camera is being culled by custom matrix and the near clip plane due cube position significantly altered in
the vertex shader
Reproducible with: 2017.4.28f1, 2018.4.1f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Nested Canvases with the same Order in Layer ignore Z position for render order when sharing parent Canvas
- ShaderGraph Material subasset loses texture reference when reimporting all assets while using a scripted importer
- Values changed on a prefab are not retained when entering Play Mode
- Shadow Caster 2D shadows partially disappear in specific spots when used with Composite Collider 2D in the Game view
- Hierarchy and Library parts in UI Builder are inaccessible when UI Builder window is resized and these elements no longer fit in the window
Resolution Note (fix version 2019.3):
There was a bug which caused the camera's normal near and far planes to be used for culling even though the user had set a custom culling matrix. The bug should now be fixed.