TerrainMaterialTextureParameters

Description

sealed class Tinman.Engine.Rendering.Effects.Shared.TerrainMaterialTextureParameters

Derived from

RenderEffectParameters abstract

Shared render effect parameters for a single terrain material texture (see TerrainMaterialTexture).

Public / Constants

ChangedAlbedoReflectivityMap


public constant ChangedAlbedoReflectivityMap → (1:int32)

Changed flag for AlbedoReflectivityMap.

ChangedNormalAmbientRoughnessMap


public constant ChangedNormalAmbientRoughnessMap → (1 << 2:int32)

Changed flag for NormalAmbientRoughnessMap.

ChangedScaleDisplacement


public constant ChangedScaleDisplacement → (1 << 3:int32)

Changed flag for ScaleDisplacement.

ChangedScaleTexture


public constant ChangedScaleTexture → (1 << 5:int32)

Changed flag for ScaleTexture.

Public / Constructors

TerrainMaterialTextureParameters


public constructor TerrainMaterialTextureParameters → ()

Creates a new instance of TerrainMaterialTextureParameters.

Public / Methods

Set


public method Set → (5)

material in : TerrainMaterial

[not-null]
The terrain material.

texture in : TerrainMaterialTexture

The terrain material texture.

scale in : Vec2F

The terrain material texture scale.

cache in : IResourceCache

[not-null]
The resource cache to use.

materialScale in : float32

The material scale factor.

Sets parameter values according to the given material texture.

The following parameters are set:

Public / Attributes

AlbedoReflectivityMap


public attribute AlbedoReflectivityMap → (get,set)

value : ITexture2D

The material texture.

The albedo / reflectivity material texture, see TerrainMaterialTexture.AlbedoReflectivity.

Defaults to null.

IsEmpty


public attribute IsEmpty → (get)

value : bool

true if textures are not present, false if they are.

Is this material texture empty?

NormalAmbientRoughnessMap


public attribute NormalAmbientRoughnessMap → (get,set)

value : ITexture2D

The material texture.

The normal / ambient occlusion / roughness material texture, see TerrainMaterialTexture.NormalAmbientRoughness.

Defaults to null.

ScaleDisplacement


public attribute ScaleDisplacement → (get,set)

value : float32

The scale factor from normalized texture samples in the range [0..1] to displacement values in terrain-space.

Scale factor for displacement texture samples.

Defaults to 0.

ScaleTexture


public attribute ScaleTexture → (get,set)

value : float32

The scale factor from terrain-space to texture coordinates.

Scale factor for terrain textures.

Defaults to 0.