From 23f160ce570da98064b5fd4111866c848fdaa678 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 22 Dec 2024 09:03:57 -0500 Subject: [PATCH] RendererUtils: Honor fog. --- types/three/src/renderers/common/RendererUtils.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/three/src/renderers/common/RendererUtils.d.ts b/types/three/src/renderers/common/RendererUtils.d.ts index 814a3d71c..6c8e7c29a 100644 --- a/types/three/src/renderers/common/RendererUtils.d.ts +++ b/types/three/src/renderers/common/RendererUtils.d.ts @@ -6,7 +6,10 @@ import { RenderTarget } from "../../core/RenderTarget.js"; import { Material } from "../../materials/Material.js"; import { Color } from "../../math/Color.js"; import MRTNode from "../../nodes/core/MRTNode.js"; +import Node from "../../nodes/core/Node.js"; import LightsNode from "../../nodes/lighting/LightsNode.js"; +import { Fog } from "../../scenes/Fog.js"; +import { FogExp2 } from "../../scenes/FogExp2.js"; import { Scene } from "../../scenes/Scene.js"; import { CubeTexture } from "../../textures/CubeTexture.js"; import { Texture } from "../../textures/Texture.js"; @@ -52,6 +55,8 @@ export function restoreRendererState(renderer: Renderer, state: RendererState): export interface SceneState { background: Color | Texture | CubeTexture | null; backgroundNode: Node | null | undefined; + fog: Fog | FogExp2 | null; + fogNode: Node | null | undefined; overrideMaterial: Material | null; }