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, depthTest: true,
depthWrite: false, depthWrite: false,
blending: AdditiveBlending, blending: AdditiveBlending,
clippingPlanes: clip ? [clip] : undefined, clipping: clip !== undefined,
clipping: true, ...(clip ? { clippingPlanes: [clip] } : {}),
uniforms: { uniforms: {
thickness: { value: null }, thickness: { value: null },
@@ -113,7 +113,7 @@ export function SpacedArmorSubExternal({
colorWrite: false, colorWrite: false,
depthTest: true, depthTest: true,
depthWrite: true, depthWrite: true,
clippingPlanes: clip ? [clip] : undefined, ...(clip ? { clippingPlanes: [clip] } : {}),
}), }),
onClick() {}, onClick() {},
userData: { userData: {