Skip to content

Documentation: Modifiers

Essentuan edited this page Mar 28, 2026 · 1 revision

Modifiers

Modifiers are the way Photonics lets shaders touch some parts of Photonics code. They are regular shader files created under the /photonics/modifiers directory, and most will be a single method declaration.

Modifiers don't have to be active at all times either! The shader can disable them by defining PH_<MODIFIER NAME>_DISABLED in the file.

Clone this wiki locally