public class TangentGenerator extends Object
| Constructor and Description |
|---|
TangentGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static List<Vector3f> |
calculate(List<Vector3f> positions,
List<Integer> indices,
List<Vector2f> texCoords) |
static void |
calculate(Vertex[] vertices,
int[] indices) |
protected static float |
getFactor(org.achtern.AchternEngine.core.util.TangentGenerator.TriangleDelta delta) |
protected static Vector3f |
getTangent(org.achtern.AchternEngine.core.util.TangentGenerator.TriangleDelta delta,
Vector3f e1,
Vector3f e2) |
protected static org.achtern.AchternEngine.core.util.TangentGenerator.TriangleDelta |
getTriangleDelta(Vector2f tex0,
Vector2f tex1,
Vector2f tex2) |
public static void calculate(Vertex[] vertices, int[] indices)
public static List<Vector3f> calculate(List<Vector3f> positions, List<Integer> indices, List<Vector2f> texCoords)
protected static Vector3f getTangent(org.achtern.AchternEngine.core.util.TangentGenerator.TriangleDelta delta, Vector3f e1, Vector3f e2)
protected static float getFactor(org.achtern.AchternEngine.core.util.TangentGenerator.TriangleDelta delta)
Copyright © 2015. All rights reserved.