Struct NormalWarper
Warps the normals from within a (-0.5 - 0.5) cube.
Intended to be constructed by Wildtile and then used by Postprocessors (including user-built ones) by accessing it through
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: CarbideFunction.Wildtile
Syntax
public struct NormalWarper
Constructors
NormalWarper(Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3)
Pass the X, Y, and Z normal warp transforms at each corner.
The parameters' numbers are in ZYX order, so 001 is the corner to the right of 000.
Declaration
public NormalWarper(Vector3 x000, Vector3 y000, Vector3 z000, Vector3 x001, Vector3 y001, Vector3 z001, Vector3 x010, Vector3 y010, Vector3 z010, Vector3 x011, Vector3 y011, Vector3 z011, Vector3 x100, Vector3 y100, Vector3 z100, Vector3 x101, Vector3 y101, Vector3 z101, Vector3 x110, Vector3 y110, Vector3 z110, Vector3 x111, Vector3 y111, Vector3 z111)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | x000 | |
Vector3 | y000 | |
Vector3 | z000 | |
Vector3 | x001 | |
Vector3 | y001 | |
Vector3 | z001 | |
Vector3 | x010 | |
Vector3 | y010 | |
Vector3 | z010 | |
Vector3 | x011 | |
Vector3 | y011 | |
Vector3 | z011 | |
Vector3 | x100 | |
Vector3 | y100 | |
Vector3 | z100 | |
Vector3 | x101 | |
Vector3 | y101 | |
Vector3 | z101 | |
Vector3 | x110 | |
Vector3 | y110 | |
Vector3 | z110 | |
Vector3 | x111 | |
Vector3 | y111 | |
Vector3 | z111 |
Fields
identityWarper
Warper that returns the input normals unchanged.
Declaration
public static readonly NormalWarper identityWarper
Field Value
Type | Description |
---|---|
NormalWarper |
Methods
GetWarperAtPoint(Vector3)
Get the warp transform at a point in the cube. This warp transform can then convert tile-space normals into world-space normals.
Declaration
public NormalWarper.WarpPoint GetWarperAtPoint(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position |
Returns
Type | Description |
---|---|
NormalWarper.WarpPoint |