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

Changed​Albedo​Reflectivity​Map


public constant ChangedAlbedoReflectivityMap → (1:int32)

Changed flag for AlbedoReflectivityMap.

Changed​Normal​Ambient​Roughness​Map


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

Changed flag for NormalAmbientRoughnessMap.

Changed​Scale​Displacement


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

Changed flag for ScaleDisplacement.

Changed​Scale​Texture


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

Changed flag for ScaleTexture.

Public / Constructors

Terrain​Material​Texture​Parameters


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

Albedo​Reflectivity​Map


public attribute AlbedoReflectivityMap → (get,set)

value : ITexture2D

The material texture.

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

Defaults to null.

Is​Empty


public attribute IsEmpty → (get)

value : bool

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

Is this material texture empty?

Normal​Ambient​Roughness​Map


public attribute NormalAmbientRoughnessMap → (get,set)

value : ITexture2D

The material texture.

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

Defaults to null.

Scale​Displacement


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.

Scale​Texture


public attribute ScaleTexture → (get,set)

value : float32

The scale factor from terrain-space to texture coordinates.

Scale factor for terrain textures.

Defaults to 0.