C# Class PixelsForGlory.Procedural.Utilities

Show file Open project: PixelsForGlory/ProceduralVoxelMesh

Public Methods

Method Description
GetIndex ( int w, int h, int d, int wLength, int hLength, int dLength ) : int

Calculate 3-dimensional index based on passed in lengths

InBounds ( int w, int h, int d, int wLength, int hLength, int dLength ) : bool

Test that passed in dimension is in bounds

TangentSolver ( int triangles, Vector3 vertices, Vector3 normals, Vector2 uv ) : UnityEngine.Vector4[]

Solves the targents for a mesh.

Method Details

GetIndex() public static method

Calculate 3-dimensional index based on passed in lengths
public static GetIndex ( int w, int h, int d, int wLength, int hLength, int dLength ) : int
w int width
h int height
d int depth
wLength int max width
hLength int max height
dLength int max length
return int

InBounds() public static method

Test that passed in dimension is in bounds
public static InBounds ( int w, int h, int d, int wLength, int hLength, int dLength ) : bool
w int width
h int height
d int depth
wLength int max width
hLength int max height
dLength int max length
return bool

TangentSolver() public static method

Solves the targents for a mesh.
public static TangentSolver ( int triangles, Vector3 vertices, Vector3 normals, Vector2 uv ) : UnityEngine.Vector4[]
triangles int
vertices UnityEngine.Vector3
normals UnityEngine.Vector3
uv UnityEngine.Vector2
return UnityEngine.Vector4[]