Skip to content

docs: unlink SHADER_ constants in Material.update#8621

Merged
willeastcott merged 1 commit into
mainfrom
docs-unlink-shader-constants
Apr 20, 2026
Merged

docs: unlink SHADER_ constants in Material.update#8621
willeastcott merged 1 commit into
mainfrom
docs-unlink-shader-constants

Conversation

@willeastcott
Copy link
Copy Markdown
Contributor

Summary

Material.update linked to SHADER_FORWARD and SHADER_SHADOW, but those constants are undocumented and stripped from the generated docs (via excludeNotDocumented), producing TypeDoc warnings on Material.update, ShaderMaterial.update, and StandardMaterial.update (inherited).

Replace the links with a plain list of example pass names (forward, shadow, pick) which is more readable and avoids referencing constants that aren't part of the public API surface.

Test plan

  • npm run docs - the three SHADER_SHADOW warnings are gone.

The `Material.update` JSDoc linked to `SHADER_FORWARD` and `SHADER_SHADOW`,
but these constants are undocumented and stripped from the generated docs
(via `excludeNotDocumented`), producing TypeDoc warnings on `Material.update`,
`ShaderMaterial.update`, and `StandardMaterial.update` (inherited). Replace
the links with a plain list of example pass names (forward, shadow, pick).

Made-with: Cursor
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes TypeDoc {@link ...} references from Material.update that pointed to non-public / undocumented SHADER_* constants, eliminating documentation warnings while keeping the intent of the comment clear.

Changes:

  • Replaced {@link SHADER_FORWARD} / {@link SHADER_SHADOW} links with plain example render-pass names (forward, shadow, pick) in Material.update JSDoc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@willeastcott willeastcott merged commit 454c520 into main Apr 20, 2026
12 checks passed
@willeastcott willeastcott deleted the docs-unlink-shader-constants branch April 20, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants