-
Notifications
You must be signed in to change notification settings - Fork 5
Documentation: Macros
Defined in shader & properties files by Photonics.
Useful as a marker to indicate the presence of Photonics.
Defined in shader & properties files by Photonics.
The current Photonics version, encoded in a 122 format (1 major, 2 minor, 2 incremental), with leading zeros removed (E.g 0.3.1 would be 301).
See iris version.
Defined by patches.
Used in place of photonics.enabled to enable/disable Photonics.
You should define it just like any regular toggle option in your settings file.
DOES NOTHING SPECIAL WITH REGULAR SHADERS.
Defined in shader files.
The current value for photonics.renderScale.
Defined in shader files by Photonics.
The current value for photonics.maxLights.
Defined in shader files by Photonics when photonics.enableGi is true.
Defined in shader files by Photonics when photonics.enableBlockLight is true.
Defined in shader files by Photonics when photonics.enableHandheldLight is true.
Defined in shader files by Photonics when photonics.enableLightBinning is true.
Defined in shader files by Photonics.
The current value for photonics.restirIntialSamples.
Defined in shader files by Photonics.
The current value for photonics.restirSpatialReuseSamples.
Defined in shader files by Photonics.
The current value for photonics.restirSpatialReuseRadius.
Defined in shader files by Photonics.
The current value for photonics.restirAccumulationFrames.
Defined in shader files by Photonics.
The current value for photonics.restirDenoiserPasses.
Defined in shader files by Photonics when photonics.restirSoftShadows is true.
Defined in shader files by Photonics.
The current value for photonics.maxSamples.
Defined in shader files under the /photonics directory when in the overworld.
As of v0.3.1 it is also the default for custom dimensions.
Defined in shader files under the /photonics directory when in the nether.
Defined in shader files under the /photonics directory when in the end.
Used to enable the use of a custom alpha function in trace_ray.
Sets the alpha function used by trace_ray.
Used like:
#define PH_USE_CUSTOM_ALPHA
#define PH_ALPHA_FUNC(color) apply_tint_impl(color)
vec3 apply_tint_impl(vec4 color) {
// return the tint color here
}
#include "/photonics/photonics.glsl"Used to enable the use of a custom air return id with get_block_id.
Sets the id to return for air with get_block_id
- Home
- Documentation
- How to adapt your Shaderpack