mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: no undefined clipping planes
This commit is contained in:
1 parent
a2cfbda932
commit
7e6aa41ebb
1 file changed
+3
-3
+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: {
|
||||
|
||||
Reference in new issue
Block a user