-
Notifications
You must be signed in to change notification settings - Fork 5
Documentation: Properties
Photonics uses shaders.properties to change its internal configuration. Most of these support the use of preprocessor directives, it will be noted when a property does not allow the use of the preprocessor.
Accepts true or false (defaults to true)
Enable/disable the use of Photonics. Only works for shaders, NOT PATCHES.
Accepts true or false. Does not support the use of the preprocessor.
Indicates to Photonics a PATCH supports photonics. Does nothing if used outside a patch.
Accepts a float (defaults to 1)
Sets the resolution photonics renders at, as a factor of the screen resolution (E.g 0.5 renders at half resolution).
Accepts none, block, voxel (defaults to none), supports any case (E.g. NONE and none are both supported)
Changes the way Photonics handles transparent voxels during tracing.
-
none: Treats transparent voxels as opaque. (no performance impact) -
block: Applies tint based on the first transparent voxel, then skips tracing to the next block. (small performance impact) -
voxel: Applies tint based on every encountered transparent voxel. (large performance impact)
Accepts a non-zero positive integer (defaults to 1000)
Sets the maximum number of lights that can be loaded by Photonics.
Accepts a float (defaults to 1)
Controls the strength of enchanted items in handheld.
Accepts true, or false (defaults to true)
Controls whether Photonics uses separate rays for each hand in handheld. When enabled each hand will cast their own shadow, otherwise only 1 shadow will be cast.
Accepts true or false (defaults to false)
Controls whether lava is represented in Photonics voxel structure.
Even when true, lava will still appear invisible, but will return the correct block id when using get_block_id.
Accepts true or false (defaults to true)
Controls whether Photonics does gi tracing.
Accepts true or false (defaults to true)
Controls whether Photonics does block light tracing.
Accepts true or false (defaults to true)
Controls whether Photonics does handheld tracing.
Accepts true or false (defaults to true when photonics.lightingMode is BASIC, otherwise false)
Controls whether Photonics does light binning.
Accepts off, basic, restir (defaults to basic), supports any case (E.g. OFF and off are both supported)
Controls how Photonics does block light tracing.
Using off will disable all traced lighting effects, including GI & Handheld. Does not disable voxelization or 3D Blocks.
Unlike photonics.enable<Effect> = false, off will skip any extra rendering steps Photonics does for lighting.
Accepts a non-zero positive integer (defaults to 20)
Sets the maximum number of lights that can be sampled per fragment with basic lighting. This setting is analogous to 'Max Light Samples' in rethinking voxels.
This setting has a large impact on Photonics build time.
Accepts a non-zero positive integer (defaults to 32)
The number of lights ReSTIR will initially consider.
Accepts a non-zero positive integer (defaults to 5)
The number of samples ReSTIR uses for spatial reuse.
Accepts a float (defaults to 10)
The radius of spatial reuse.
Accepts a non-zero positive integer (defaults to 15)
The number of frames ReSTIR uses for accumulation.
Accepts a positive integer (defaults to 5)
The number of denoiser passes for ReSTIR.
A value of 0 disables denoising.
Values past 5 can have visual artifacts.
Accepts true or false (defaults to true)
Whether ReSTIR should use soft shadows.
Accepts true or false (defaults to false)
Whether ReSTIR should pass Gi through its denoiser. Results in much more precise Gi at the cost of noise.
When enabled Gi will be baked in sample_photonics_direct
- Home
- Documentation
- How to adapt your Shaderpack