-
Notifications
You must be signed in to change notification settings - Fork 5
Documentation: Light Modifier
Essentuan edited this page Mar 28, 2026
·
1 revision
Intercepts Lights as they're loaded by Photonics. Disabled using PH_LIGHT_MODIFIER_DISABLED.
Some things to be aware of:
-
light.coloris premultiplied bylight.intensity, if you change it you should make sure to multiply it again bylight.intensity. -
light.indexwill be -1 for the light in the main hand, and -2 for the light in the offhand -
light.blockIdwill be -1 for enchanted items -
light.falloffis<PH_LIGHTS_INTENSITY> / 100 -
light.attenuationisvec2(0.9, 1 / <PH_LIGHTS_RADIUS>)
Usage:
void modify_light(inout Light light, vec3 world_pos);- Home
- Documentation
- How to adapt your Shaderpack