C# 클래스 PixelsForGlory.Procedural.Utilities

파일 보기 프로젝트 열기: PixelsForGlory/ProceduralVoxelMesh

공개 메소드들

메소드 설명
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.

메소드 상세

GetIndex() 공개 정적인 메소드

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
리턴 int

InBounds() 공개 정적인 메소드

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
리턴 bool

TangentSolver() 공개 정적인 메소드

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
리턴 UnityEngine.Vector4[]