Skip to content

Commit

Permalink
Docs: Improve Material page
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Dec 20, 2024
1 parent 59051d8 commit 3a30acd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/three/src/materials/Material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
/**
* An optional callback that is executed immediately before the shader program is compiled.
* This function is called with the shader source code as a parameter.
* Useful for the modification of built-in materials.
* Useful for the modification of built-in materials, but the recommended approach moving forward is to use
* `WebGPURenderer` with the new Node Material system and
* [TSL]{@link https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language}.
* Unlike properties, the callback is not supported by {@link .clone()}, {@link .copy()} and {@link .toJSON()}.
* This callback is only supported in `WebGLRenderer` (not `WebGPURenderer`).
* @param parameters WebGL program parameters
Expand Down

0 comments on commit 3a30acd

Please sign in to comment.