Home
last modified time | relevance | path

Searched refs:normBuf (Results 1 – 4 of 4) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DSkeletonControl.java330 float[] normBuf = vars.skinNormals; in applySkinning() local
338 fnb.get(normBuf, 0, bufLength); in applySkinning()
344 float nmx = normBuf[idxPositions]; in applySkinning()
346 float nmy = normBuf[idxPositions]; in applySkinning()
348 float nmz = normBuf[idxPositions]; in applySkinning()
369 normBuf[idxPositions] = rnx; in applySkinning()
371 normBuf[idxPositions] = rny; in applySkinning()
373 normBuf[idxPositions] = rnz; in applySkinning()
380 fnb.put(normBuf, 0, bufLength); in applySkinning()
439 float[] normBuf = vars.skinNormals; in applySkinningTangents() local
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DSphere.java153 FloatBuffer normBuf = BufferUtils.createVector3Buffer(vertCount); in setGeometryData() local
159 setBuffer(Type.Normal, 3, normBuf); in setGeometryData()
219 normBuf.put(kNormal.x).put(kNormal.y).put( in setGeometryData()
222 normBuf.put(-kNormal.x).put(-kNormal.y).put( in setGeometryData()
244 BufferUtils.copyInternalVector3(normBuf, iSave, i); in setGeometryData()
267 normBuf.position(i * 3); in setGeometryData()
269 normBuf.put(0).put(0).put(-1); // allow for inner in setGeometryData()
273 normBuf.put(0).put(0).put(1); in setGeometryData()
290 normBuf.put(0).put(0).put(1); in setGeometryData()
292 normBuf.put(0).put(0).put(-1); in setGeometryData()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/scene/plugins/
DOBJLoader.java452 FloatBuffer normBuf = null; in constructMesh() local
456 normBuf = BufferUtils.createFloatBuffer(vertIndexMap.size() * 3); in constructMesh()
457 m.setBuffer(VertexBuffer.Type.Normal, 3, normBuf); in constructMesh()
493 if (normBuf != null){ in constructMesh()
495 normBuf.position(v0.index * 3); in constructMesh()
496 normBuf.put(v0.vn.x).put(v0.vn.y).put(v0.vn.z); in constructMesh()
497 normBuf.position(v1.index * 3); in constructMesh()
498 normBuf.put(v1.vn.x).put(v1.vn.y).put(v1.vn.z); in constructMesh()
499 normBuf.position(v2.index * 3); in constructMesh()
500 normBuf.put(v2.vn.x).put(v2.vn.y).put(v2.vn.z); in constructMesh()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DBatchNode.java151 FloatBuffer normBuf = (FloatBuffer) nvb.getData(); in updateSubBatch() local
157 …doTransformsTangents(posBuf, normBuf, tanBuf, bg.startIndex, bg.startIndex + bg.getVertexCount(), … in updateSubBatch()
160 …doTransforms(posBuf, normBuf, bg.startIndex, bg.startIndex + bg.getVertexCount(), bg.cachedOffsetM… in updateSubBatch()
163 nvb.updateData(normBuf); in updateSubBatch()