feat: add godrays

This commit is contained in:
neru
2026-01-02 01:23:07 -03:00
parent b6a7ca09c9
commit 0ba6446757
+14 -1
View File
@@ -28,7 +28,8 @@ import {
Noise, Noise,
Pixelation, Pixelation,
Vignette, Vignette,
DepthOfField DepthOfField,
GodRays
} from '@react-three/postprocessing'; } from '@react-three/postprocessing';
interface Shader { interface Shader {
@@ -618,6 +619,18 @@ export default function Home() {
luminanceThreshold={0.5} luminanceThreshold={0.5}
luminanceSmoothing={0.1} luminanceSmoothing={0.1}
/> />
{sealMesh ?
<GodRays
sun={sealMesh}
samples={16}
density={1}
decay={0.99}
weight={0.1}
exposure={0.2}
clampMax={1}
blur={true}
/> : <></>
}
</EffectComposer> </EffectComposer>
<Environment files={'hdr/sky.hdr'} environmentIntensity={1} background /> <Environment files={'hdr/sky.hdr'} environmentIntensity={1} background />