From 5f630418284e62acdec7239c9ff4da5fde0b8f8c Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 22 Mar 2024 23:48:48 -0400 Subject: [PATCH] Texture: Introduce pmremVersion --- types/three/src/textures/Texture.d.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/types/three/src/textures/Texture.d.ts b/types/three/src/textures/Texture.d.ts index 5d75448b7..d2e6efff9 100644 --- a/types/three/src/textures/Texture.d.ts +++ b/types/three/src/textures/Texture.d.ts @@ -339,13 +339,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> { */ isRenderTargetTexture: boolean; - /** - * Indicates whether this texture should be processed by {@link THREE.PMREMGenerator} or not. - * @remarks Only relevant for render target textures. - * @defaultValue `false` - */ - needsPMREMUpdate: boolean; - /** * An object that can be used to store custom data about the texture. * @remarks It should not hold references to functions as these will not be cloned. @@ -360,11 +353,24 @@ export class Texture extends EventDispatcher<{ dispose: {} }> { */ version: number; + /** + * Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target + * textures) + */ + pmremVersion: number; + /** * Set this to `true` to trigger an update next time the texture is used. Particularly important for setting the wrap mode. */ set needsUpdate(value: boolean); + /** + * Indicates whether this texture should be processed by {@link THREE.PMREMGenerator} or not. + * @remarks Only relevant for render target textures. + * @defaultValue `false` + */ + set needsPMREMUpdate(value: boolean); + /** * The Global default value for {@link anisotropy | .anisotropy}. * @defaultValue `1`.