-
Notifications
You must be signed in to change notification settings - Fork 5
Documentation: Provided Files
Photonics comes with 2 main files that open up its API: /photonics/photonics.glsl and /photonics/ph_samplers.glsl.
These files both have #if guards to prevent them from being included multiple times.
Due to the way Iris handles includes you must create an empty stub with the same name, otherwise Iris will complain about them being missing (even if you put the include behind an #if guard!).
While /photonics/photonics.glsl and /photonics/ph_samplers.glsl are the 2 main for its API. Photonics lets you replace every shader it uses (besides photonics/photonics.glsl and photonics/ph_samplers.glsl for the reason above).
Most files Photonics uses are not stable, with 2 main exceptions:
Modifiers are a concept analogous to the idea of Mixins, they allow you to add your own code to certain parts of Photonics.
These will never change without at least minor version increment.
Due to the usefulness of being able to replace Photonics built in handheld & GI, they are guaranteed to be stable between incremental updates, them being:
/photonics/common/handheld_lighting.glsl/photonics/common/indirect_lighting.glsl
- Home
- Documentation
- How to adapt your Shaderpack