fix: ground phasing through

This commit is contained in:
TrèsAbhi committed 2025-11-26 20:25:45 -06:00
1 parent efb479fece
commit 2559782a28
1 file changed
+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