ProceduralPlanets
|
|
staticgetset |
Array of Level of Detail (LOD) planet size levels. Valid values in array = 0.0f and up The first entry in array is highest level of detail, last entry in array is lowest level of detail.
The sizes are specified from 0.0f (0%) - 1.0f (100%) but can also be higher than 1.0 (e.g. 1.5 = 150%) The size of the planet is calculated by comparing the planet diameter as seen by a specified camera (main camera by default) and comparing it to the height of screen.
Default array is { 0.65f, 0.35f, 0.15f, 0.05f }
Important: Size of array must be TextureLODSteps - 1
The reason it's - 1 is because the sizes specifies between each step and if there are 5 steps there are only 4 transitions between the 5 steps, e.g.: (Step0) Size0 (Step1) Size1 (Step2) Size2 (Step3) Size3 (Step4)