Skip to content

Document shadow and picker pass support for ShaderMaterial - #1110

Open
mvaligursky wants to merge 2 commits into
mainfrom
mv-shader-pass-docs
Open

Document shadow and picker pass support for ShaderMaterial#1110
mvaligursky wants to merge 2 commits into
mainfrom
mv-shader-pass-docs

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

Warning

Do not merge until engine 2.22 is released — the shadowCasterPS chunk documented here ships with that release (playcanvas/engine#9116).

Adds two subsections to the Shader Includes section of the Shaders page (EN + JA):

Changes:

  • Shadow Pass — how a ShaderMaterial fragment shader casts shadows using #include "shadowCasterPS" and getShadowOutput(), including the supported shadow types (all types for directional lights, PCF for spot lights, no omni), and the recommendation to skip forward-only work with #ifndef SHADOW_PASS.
  • Picker Pass — how a ShaderMaterial fragment shader supports the Picker using #include "pickPS" and getPickOutput(). This feature is already available in released engine versions, but was previously undocumented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant