C# Class PixelsForGlory.Procedural.Utilities

Afficher le fichier Open project: PixelsForGlory/ProceduralVoxelMesh

Méthodes publiques

Méthode 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 méthode

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
Résultat int

InBounds() public static méthode

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
Résultat bool

TangentSolver() public static méthode

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
Résultat UnityEngine.Vector4[]