fix: no undefined clipping planes

This commit is contained in:
TrèsAbhi committed 2024-04-21 11:06:40 -05:00
1 parent a2cfbda932
commit 7e6aa41ebb
1 file changed
+3 -3
@@ -37,8 +37,8 @@ export function SpacedArmorSubExternal({
depthTest: true,
depthWrite: false,
blending: AdditiveBlending,
clippingPlanes: clip ? [clip] : undefined,
clipping: true,
clipping: clip !== undefined,
...(clip ? { clippingPlanes: [clip] } : {}),
uniforms: {
thickness: { value: null },
@@ -113,7 +113,7 @@ export function SpacedArmorSubExternal({
colorWrite: false,
depthTest: true,
depthWrite: true,
clippingPlanes: clip ? [clip] : undefined,
...(clip ? { clippingPlanes: [clip] } : {}),
}),
onClick() {},
userData: {