From c9a1c5baf5fa57c0472bc51fbd9b7d1e8c0ee380 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 27 Jun 2024 08:04:11 -0400 Subject: [PATCH] Docs: Improve Material page. (#1062) --- types/three/src/materials/Material.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/three/src/materials/Material.d.ts b/types/three/src/materials/Material.d.ts index 4b8319148..c7ba90f55 100644 --- a/types/three/src/materials/Material.d.ts +++ b/types/three/src/materials/Material.d.ts @@ -432,7 +432,10 @@ export class Material extends EventDispatcher<{ dispose: {} }> { copy(material: Material): this; /** - * This disposes the material. Textures of a material don't get disposed. These needs to be disposed by {@link Texture}. + * Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer + * used in your app. + * + * Material textures must be disposed of by the dispose() method of {@link Texture}. */ dispose(): void;