mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: safer outlines
This commit is contained in:
1 parent
99cdf931a8
commit
0f45476a8b
1 file changed
+5
-3
@@ -205,9 +205,11 @@ export function StaticArmorSceneComponent({
|
||||
},
|
||||
})}
|
||||
|
||||
<lineSegments material={outlineMaterial}>
|
||||
<edgesGeometry args={[(node as Mesh).geometry, 45]} />
|
||||
</lineSegments>
|
||||
{node instanceof Mesh && (
|
||||
<lineSegments material={outlineMaterial}>
|
||||
<edgesGeometry args={[node.geometry, 90 / 6]} />
|
||||
</lineSegments>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user