TerrainPatch.java | 321 getMesh().getBuffer(Type.Binormal).updateData(newBinormalBuffer);
324 private void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binormal) {
327 VertexBuffer BB = mesh.getBuffer(Type.Binormal);
330 BufferUtils.setInBuffer(binormal, (FloatBuffer)BB.getData(), index);
369 Vector3f binormal = new Vector3f();
local 385 averageNormalsTangents(null, rootPoint, leftPoint, bottomPoint, rightPoint, normal, tangent, binormal);
386 setInBuffer(this.getMesh(), s, normal, tangent, binormal);
local 387 setInBuffer(right.getMesh(), 0, normal, tangent, binormal);
local 391 averageNormalsTangents(topPoint, rootPoint, leftPoint, bottomPoint, rightPoint,normal, tangent, binormal);
392 setInBuffer(this.getMesh(), s, normal, tangent, binormal);
local 393 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); local 406 setInBuffer(right.getMesh(), (s+1)*(s), normal, tangent, binormal); local 411 setInBuffer(right.getMesh(), (s+1)*s, normal, tangent, binormal); local 412 setInBuffer(bottom.getMesh(), s, normal, tangent, binormal); local 423 setInBuffer(right.getMesh(), (s+1)*(i), normal, tangent, binormal); local 439 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local 440 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local 445 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local 446 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local 447 setInBuffer(top.getMesh(), (s+1)*s, normal, tangent, binormal); local 458 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local 464 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local 466 setInBuffer(bottom.getMesh(), 0, normal, tangent, binormal); local 477 setInBuffer(this.getMesh(), (s+1)*(i), normal, tangent, binormal); local 500 setInBuffer(this.getMesh(), i, normal, tangent, binormal); local 501 setInBuffer(top.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local 524 setInBuffer(this.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local 525 setInBuffer(bottom.getMesh(), i, normal, tangent, binormal); local [all...] |