|
@@ -1,11 +1,9 @@
|
|
|
#if NUM_CLIPPING_PLANES > 0
|
|
|
|
|
|
- vec4 plane;
|
|
|
-
|
|
|
#pragma unroll_loop
|
|
|
for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
|
|
|
|
|
|
- plane = clippingPlanes[ i ];
|
|
|
+ vec4 plane = clippingPlanes[ i ];
|
|
|
if ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;
|
|
|
|
|
|
}
|
|
@@ -17,7 +15,7 @@
|
|
|
#pragma unroll_loop
|
|
|
for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
|
|
|
|
|
|
- plane = clippingPlanes[ i ];
|
|
|
+ vec4 plane = clippingPlanes[ i ];
|
|
|
clipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;
|
|
|
|
|
|
}
|