MeshToonMaterial: Fix clipping planes.
@@ -1,7 +1,7 @@
export default /* glsl */`
#if NUM_CLIPPING_PLANES > 0
- #if ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
+ #if ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP ) && ! defined( TOON )
varying vec3 vViewPosition;
#endif
@@ -1,5 +1,5 @@
-#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
+#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP ) && ! defined( TOON )
`;
vViewPosition = - mvPosition.xyz;