Searched refs:binormal (Results 1 – 5 of 5) sorted by relevance
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
D | TerrainPatch.java | 324 …vate void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binormal) { in setInBuffer() argument 330 BufferUtils.setInBuffer(binormal, (FloatBuffer)BB.getData(), index); in setInBuffer() 369 Vector3f binormal = new Vector3f(); in fixNormalEdges() local 385 …geNormalsTangents(null, rootPoint, leftPoint, bottomPoint, rightPoint, normal, tangent, binormal); in fixNormalEdges() 386 setInBuffer(this.getMesh(), s, normal, tangent, binormal); in fixNormalEdges() local 387 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); in fixNormalEdges() local 391 …NormalsTangents(topPoint, rootPoint, leftPoint, bottomPoint, rightPoint,normal, tangent, binormal); in fixNormalEdges() 392 setInBuffer(this.getMesh(), s, normal, tangent, binormal); in fixNormalEdges() local 393 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); in fixNormalEdges() local 394 setInBuffer(top.getMesh(), (s+1)*(s+1)-1, normal, tangent, binormal); in fixNormalEdges() [all …]
|
D | LODGeomap.java | 656 Vector3f binormal = new Vector3f(); in writeTangentArray() local 670 binormal.set(new Vector3f(1,0,0).cross(normal)); in writeTangentArray() 673 …BufferUtils.setInBuffer(binormal.normalizeLocal(), binormalStore, (r * getWidth() + c)); // save t… in writeTangentArray() 729 …static Vector3f calculateTangent(Vector3f[] v, Vector2f[] t, Vector3f tangent, Vector3f binormal) { in calculateTangent() argument 751 binormal.set(edge2); in calculateTangent() 752 binormal.normalizeLocal(); in calculateTangent() 762 binormal.x = 0; in calculateTangent() 763 binormal.y = (edge1uv.x * edge2.y) * factor; in calculateTangent() 764 binormal.z = (edge1uv.x * edge2.z) * factor; in calculateTangent() 766 binormal.normalizeLocal(); in calculateTangent()
|
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
D | TangentBinormalGenerator.java | 90 public final Vector3f binormal; field in TangentBinormalGenerator.TriangleData 93 public TriangleData(Vector3f tangent, Vector3f binormal, Vector3f normal) { in TriangleData() argument 95 this.binormal = binormal; in TriangleData() 316 Vector3f binormal = new Vector3f(); in processTriangle() local 339 binormal.set(edge2); in processTriangle() 340 binormal.normalizeLocal(); in processTriangle() 342 if (Math.abs(Math.abs(tangent.dot(binormal)) - 1) 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() [all …]
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Water/ |
D | simple_water.vert | 47 vec4 binormal = vec4(0.0, 0.0, 1.0, 0.0); 53 viewDir.y = dot(temp, binormal); 59 lightDir.y = dot(temp, binormal);
|
D | Water.frag | 89 //vec3 binormal = normalize(B);
|