ProceduralPlanets
|
PropertyFloat contains floats with a minimum/maximum range. It contains reference to any procedural textures, materials, and shaders that are affected by this float. More...
Public Types | |
enum | Method { VALUE, LERP } |
enum | DataType { INT, FLOAT } |
Public Member Functions | |
float | GetPropertyLerp () |
Gets a linear interpolated value by using the actual value and interpolating between the min and max value. More... | |
float | SetPropertyFloat (int _seed, float _minValue, float _maxValue) |
Sets a Random Property Float based on a random seed and the min and max value. More... | |
float | SeededRandomFloat (int _seed, float _minValue, float _maxValue) |
Get a random float between a min and max range using a specific seed (without affecting Random.State) More... | |
void | OverridePropertyFloat (float _value) |
Overrides a float with a specific value. More... | |
PropertyFloat (string _key, string _label, float _minValue, float _maxValue, bool _clamp01, bool _displayAsInt, int _seedOffset, bool _variation, string[] _proceduralTextures=null, Material[] _materials=null, string _shaderProperty=null, Method _method=Method.VALUE, DataType _shaderDataType=DataType.FLOAT) | |
Constructor to define a PropertyFloat. More... | |
PropertyFloat contains floats with a minimum/maximum range. It contains reference to any procedural textures, materials, and shaders that are affected by this float.