ProceduralPlanets

◆ TextureProgressiveSteps

int ProceduralPlanets.PlanetManager.TextureProgressiveSteps
staticgetset

Gets or sets the number of steps / levels for progressive texture resolutions..

Valid values are 2-5. (1 is not allowed, set static texture resolution instead)




using System.Collections;
// This example requires a PlanetManager instance to be present in the scene.
// Add the "Procedural Planets/Prefabs/PlanetManager" prefab to the scene first.
// Then create another gameobject and attach this example script to it.
public class Example : MonoBehaviour
{
void Start()
{
// Create a random planet at the center of the scene
PlanetManager.CreatePlanet(Vector3.zero);
// Set planet texture detail mode to Progressive (same texture resolution progression for all planets and textures)
PlanetManager.TextureDetailMode = PlanetManager.TextureDetailModes.Progressive;
// Set number of progressive steps to 4.
PlanetManager.TextureProgressiveSteps = 4;
// Set progressive resolution array to: 2 (64 x 64), 3 (128 x 128), 4 (256 x 256), 7 (2048 x 2048)
PlanetManager.TextureProgressiveCommon = new int[4] { 2,3,4,7 };
}
}
See also
TextureDetailMode, TextureProgressiveCommon, TextureProgressiveComposition, TextureProgressiveBiome, TextureProgressiveClouds, TextureProgressiveCities, TextureProgressiveLava, TextureProgressivePolarIce, TextureProgressiveGas

> > > > > > > > >