diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 1018e129..7929a045 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -210,6 +210,10 @@ import { resolveBoxVolumeRenderPaths } from "../rendering/advanced-rendering"; import { applyAdvancedRenderingPerspectiveCameraFar } from "../rendering/distance-fog-pass"; +import { + createScreenSpaceGodRaysLightSource, + syncScreenSpaceGodRaysLightSource +} from "../rendering/screen-space-god-rays"; import { fitCelestialDirectionalShadow, resolveDominantCelestialShadowCaster @@ -712,6 +716,7 @@ export class ViewportHost { private readonly ambientLight = new AmbientLight(); private readonly sunLight = new DirectionalLight(); private readonly moonLight = new DirectionalLight(); + private readonly godRaysLightSource = createScreenSpaceGodRaysLightSource(); private readonly localLightGroup = new Group(); private readonly lightVolumeGroup = new Group(); private readonly brushGroup = new Group();