TextureCoordinateGenerationMode Enum

Definition

Defines the method the Uv texture coordinates are generated for material texture sampling.

public enum class TextureCoordinateGenerationMode
public enum TextureCoordinateGenerationMode
type TextureCoordinateGenerationMode = 
Public Enum TextureCoordinateGenerationMode
Inheritance
TextureCoordinateGenerationMode

Fields

PlanarObjectSpace 3

Similar to PlanarWorldSpace, except that it uses the untransformed object space position of the vertex.

PlanarWorldSpace 2

The Uv coordinates do not come from the source mesh but instead are computed in the shader using the distance of the vertex world space position towards two planes in 3d space. In particular, this mode requires two planes, planeU and planeV, and then the texture coordinates are computed as follows (pseudo-code): u = planeU.DistanceTo(vertexPos), v = planeV.DistanceTo(vertexPos).

SourceUv0 0

The Uv coordinates come from the first Uv set of the source mesh and can (optionally) be transformed through a scaling and offset parameter.

SourceUv1 1

The Uv coordinates come from the second Uv set of the source mesh and can (optionally) be transformed through a scaling and offset parameter.

Applies to