Home
last modified time | relevance | path

Searched refs:edge2uv (Results 1 – 2 of 2) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/util/
DTangentBinormalGenerator.java313 Vector2f edge2uv = new Vector2f(); in processTriangle() local
320 t[2].subtract(t[0], edge2uv); in processTriangle()
321 float det = edge1uv.x * edge2uv.y - edge1uv.y * edge2uv.x; in processTriangle()
350 tangent.x = (edge2uv.y * edge1.x - edge1uv.y * edge2.x) * factor; in processTriangle()
351 tangent.y = (edge2uv.y * edge1.y - edge1uv.y * edge2.y) * factor; in processTriangle()
352 tangent.z = (edge2uv.y * edge1.z - edge1uv.y * edge2.z) * factor; in processTriangle()
357 binormal.x = (edge1uv.x * edge2.x - edge2uv.x * edge1.x) * factor; in processTriangle()
358 binormal.y = (edge1uv.x * edge2.y - edge2uv.x * edge1.y) * factor; in processTriangle()
359 binormal.z = (edge1uv.x * edge2.z - edge2uv.x * edge1.z) * factor; in processTriangle()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DLODGeomap.java733 Vector2f edge2uv = new Vector2f(); // x=0 in calculateTangent() local
735 t[2].subtract(t[0], edge2uv); in calculateTangent()
738 float det = edge1uv.x * edge2uv.y;// - edge1uv.y*edge2uv.x; = 0 in calculateTangent()
755 tangent.x = (edge2uv.y * edge1.x) * factor; in calculateTangent()
757 tangent.z = (edge2uv.y * edge1.z) * factor; in calculateTangent()