Shader Setup
Depending on the terrain configuration, Orbis will set additional shader keywords to pass the center of a spherical planet and lod transition progress to shaders.
Planet Center
The planet center is set with the property reference name: ‘_planetcenter’, and contains the center of the planet in world space.
LOD Dithering
When lod transition are enabled, the shader keyword ‘_DitherProgress’ is updated, with ranges from 0 - 2. To enable smooth transitions in your shader, feed this value into a dither node, and link that to the Alpha Clip Threshold input of the shader. Be sure to enable “Alpha Clipping” in the shader settings to enable alpha clipping.