Skip to content

Commit 00d36dd

Browse files
committed
Fixed culling masks and custom farclip planes
Fixed culling masks and custom farclip planes
1 parent b8b88f7 commit 00d36dd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ReflectiveScript.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ protected void UpdateCubemap(int faceMask)
146146
_go.camera.aspect = 1;
147147
float[] distances = new float[32];
148148

149+
distances[0] = distances[1] = distances[15] = 60000;
149150
distances[10] = 3.0E+07F;
150-
distances[15] = 3.0E+07F;
151+
distances[23] = 3.0E+07F;
151152

152153
_go.camera.layerCullDistances = distances;
153154

154-
//_go.camera.cullingMask = LayerMask. //(1 << 0) | (1 << 4) | (1 << 9) | (1 << 10) | (1 << 15) | (1 << 18) | (1 << 23);
155+
_go.camera.cullingMask = (1 << 0) | (1 << 1) | (1 << 4) | (1 << 9) | (1 << 10) | (1 << 15) | (1 << 16) | (1 << 18) | (1 << 20) | (1 << 23) | (1 << 30);
156+
155157
_cam = _go.camera;
156158
_cam.nearClipPlane = NearClipPlane;
157159
_cam.farClipPlane = FarClipPlane;

0 commit comments

Comments
 (0)