Class NoiseSettings
A data class that can be used to define various types of noise.
Inheritance
Namespace: UnityEditor.Experimental.TerrainAPI
Syntax
[Serializable]
public class NoiseSettings : ScriptableObject
Fields
domainSettings
The domain settings for the defined noise field. Contains serialized data defining the NoiseType and FractalType for this NoiseSettings instance.
Declaration
public NoiseSettings.NoiseDomainSettings domainSettings
Field Value
Type | Description |
---|---|
NoiseSettings.NoiseDomainSettings |
positionTexture
Declaration
public Texture positionTexture
Field Value
Type | Description |
---|---|
Texture |
transformSettings
The transform settings for the defined noise field
Declaration
public NoiseSettings.NoiseTransformSettings transformSettings
Field Value
Type | Description |
---|---|
NoiseSettings.NoiseTransformSettings |
useTextureForPositions
Declaration
public bool useTextureForPositions
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
trs
The noise field's TRS transformation Matrix
Declaration
public Matrix4x4 trs { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 | A Matrix4x4 for the noise field's TRS matrix |
Methods
Copy(NoiseSettings)
Copies the runtime information from a provided NoiseSettings instance.
Declaration
public void Copy(NoiseSettings noiseSettings)
Parameters
Type | Name | Description |
---|---|---|
NoiseSettings | noiseSettings | The NoiseSettings instance to copy from |
CopySerialized(NoiseSettings)
Copies the serialized information from a provided NoiseSettings instance
Declaration
public void CopySerialized(NoiseSettings noiseSettings)
Parameters
Type | Name | Description |
---|---|---|
NoiseSettings | noiseSettings | The NoiseSettings instance to copy from |
Reset()
Resets this NoiseSettings instance to have the default settings
Declaration
public void Reset()
SetupMaterial(Material)
Sets up the provided Material to be used with this NoiseSettings instance. Some assumptions are made here as far as definitions and variable declarations in the Material's Shader go. float4 _NoiseTranslation, float4 _NoiseRotation, float4 _NoiseScale, and float4x4 _NoiseTransform are assumed to be declared. Sets up the Material using the NoiseType and FractalType SetupMaterial functions.
Declaration
public void SetupMaterial(Material mat)
Parameters
Type | Name | Description |
---|---|---|
Material | mat | The Material to set up for use with this NoiseSettings instance |