Skip to content

shadow

Required stages: vertex (.vsh), fragment (.fsh)
Optional stages: geometry (.gsh), tessellation (.tcs, .tes)
Output Buffers: shadowcolor, shadowtex
Valid suffixes: N/A


Renders world geometry into the shadow buffers, intended for use in shadow mapping.

This program is similar to the gbuffers, except it renders terrain from the perspective of the sun or moon. Additionally there is only one shader file for this pass (for the vertex and fragment stages), so all geometry is rendered in shadow.vsh and shadow.fsh. The type of geometry rendered can be determined with renderStage instead. By default, this program renders in an orthographic perspective, this can be changed with shadowMapFov.