mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: ground phasing through
This commit is contained in:
1 parent
efb479fece
commit
2559782a28
1 file changed
+2
-1
+2
-1
@@ -14,7 +14,7 @@ export function SceneProps() {
|
||||
|
||||
useFrame(({ camera }) => {
|
||||
if (!material.current) return;
|
||||
material.current.opacity = clamp(0.5 * camera.position.y, 0, 0.5);
|
||||
material.current.opacity = clamp(0.5 * camera.position.y, 0, 0.25);
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
@@ -36,6 +36,7 @@ export function SceneProps() {
|
||||
receiveShadow
|
||||
visible={!screenshotReadyEvent.last!}
|
||||
ref={mesh}
|
||||
renderOrder={-1}
|
||||
>
|
||||
<planeGeometry args={[SIZE, SIZE]} />
|
||||
<meshStandardMaterial
|
||||
|
||||
Reference in new issue
Block a user