Skip to content

Commit

Permalink
Docs: Improve Material page. (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jun 27, 2024
1 parent 7dfda0d commit c9a1c5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/three/src/materials/Material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c9a1c5b

Please sign in to comment.