mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-27 04:29:50 +01:00
feat: allow thicker lines to depth read
This commit is contained in:
1 parent
39a6e2c38e
commit
15cb472189
1 file changed
+2
-2
@@ -137,7 +137,7 @@ export function ShotDisplay() {
|
|||||||
ref={entryLine}
|
ref={entryLine}
|
||||||
>
|
>
|
||||||
<cylinderGeometry args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]} />
|
<cylinderGeometry args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]} />
|
||||||
<meshBasicMaterial color="#ffff80" depthTest={false} />
|
<meshBasicMaterial color="#ffff80" />
|
||||||
</mesh>
|
</mesh>
|
||||||
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
|
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
|
||||||
<cylinderGeometry args={[THICKNESS / 4, THICKNESS / 4, LENGTH, 8]} />
|
<cylinderGeometry args={[THICKNESS / 4, THICKNESS / 4, LENGTH, 8]} />
|
||||||
@@ -156,7 +156,7 @@ export function ShotDisplay() {
|
|||||||
<cylinderGeometry
|
<cylinderGeometry
|
||||||
args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]}
|
args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]}
|
||||||
/>
|
/>
|
||||||
<meshBasicMaterial color="#ff8080" depthTest={false} />
|
<meshBasicMaterial color="#ff8080" />
|
||||||
</mesh>
|
</mesh>
|
||||||
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
|
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
|
||||||
<cylinderGeometry
|
<cylinderGeometry
|
||||||
|
|||||||
Reference in new issue
Block a user