MeshDisplacementInfo

References
Contains mesh displacement information.

Constructors

MeshDisplacementInfo

#Since v6.0
Constructs a displacement information instance with default values. Users of this class should not rely on default values to stay constant across service releases.
public MeshDisplacementInfo()
ArgumentNullExceptionIf texture or mapping is null.

Properties

Black

#Since v6.0
Value considered lowest point in the displacement.
public double Black { get; set; }

BlackMove

#Since v6.0
The amount of displacement for the black color in the texture.
public double BlackMove { get; set; }

ChannelNumber

#Since v6.0
Mapping channel number for the displacement mapping.
public int ChannelNumber { get; set; }

FaceLimit

#Since v6.0
Runs a mesh reduction as a post process o simplify the result of displacement to meet the specified number of faces.
public int FaceLimit { get; set; }

FairingAmount

#Since v6.0
Straightens rough feature edges. The value specifies the number of passes.
public int FairingAmount { get; set; }

InstanceTransform

#Since v6.0
Instance transformation of the mesh.
public Transform InstanceTransform { get; set; }

Mapping

#Since v6.0
The texture mapping of the mesh.
public TextureMapping Mapping { get; }

MappingTransform

#Since v6.0
Texture mapping transform.
public Transform MappingTransform { get; set; }

MemoryLimit

#Since v6.0
Specifies how much memory can be allocated for use by the displacement mesh. Value in megabytes.
public int MemoryLimit { get; set; }

PostWeldAngle

#Since v6.0
Specifies the maximum angle between face normals of adjacent faces that will get welded together.
public double PostWeldAngle { get; set; }

RefineSensitivity

#Since v6.0

Specifies how sensitive the divider for contrasts is on the displacement texture.

Specify 1 to split all mesh edges on each refine step.

Specify 0.99 to make even slight contrasts on the displacement texture cause edges to be split.

Specifying 0.01 only splits edges where heavy contrast exists.

public double RefineSensitivity { get; set; }

RefineStepCount

#Since v6.0
Specifies the number of refinement passes.
public int RefineStepCount { get; set; }

SweepPitch

#Since v6.0
Specifies how densely the object is initially subdivided. The lower the value, the higher the resolution of the displaced mesh.
public double SweepPitch { get; set; }

Texture

#Since v6.0
The texture used as displacement.
public RenderTexture Texture { get; }

White

#Since v6.0
Value considered highest point of the displacement texture.
public double White { get; set; }

WhiteMove

#Since v6.0
The amount of displacement for the white color in the texture.
public double WhiteMove { get; set; }