Home
last modified time | relevance | path

Searched refs:tempVec (Results 1 – 13 of 13) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/renderer/queue/
DTransparentComparator.java42 private final Vector3f tempVec = new Vector3f(); field in TransparentComparator
73 spatPosition.subtract(camPosition, tempVec); in distanceToCam2()
74 spat.queueDistance = tempVec.dot(tempVec); in distanceToCam2()
76 float retval = Math.abs(tempVec.dot(viewVector) in distanceToCam2()
78 viewVector.mult(retval, tempVec); in distanceToCam2()
80 spat.queueDistance = tempVec.length(); in distanceToCam2()
DOpaqueComparator.java43 private final Vector3f tempVec = new Vector3f(); field in OpaqueComparator
67 spatPosition.subtract(camPosition, tempVec); in distanceToCam()
68 spat.queueDistance = tempVec.dot(viewVector); in distanceToCam()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
DPhysicsRigidBody.java72 protected javax.vecmath.Vector3f tempVec = new javax.vecmath.Vector3f(); field in PhysicsRigidBody
343 rBody.getGravity(tempVec); in getGravity()
344 return Converter.convert(tempVec, gravity); in getGravity()
354 rBody.setGravity(Converter.convert(gravity, tempVec)); in setGravity()
412 return Converter.convert(rBody.getAngularVelocity(tempVec)); in getAngularVelocity()
420 Converter.convert(rBody.getAngularVelocity(tempVec), vec); in getAngularVelocity()
428 rBody.setAngularVelocity(Converter.convert(vec, tempVec)); in setAngularVelocity()
437 return Converter.convert(rBody.getLinearVelocity(tempVec)); in getLinearVelocity()
445 Converter.convert(rBody.getLinearVelocity(tempVec), vec); in getLinearVelocity()
453 rBody.setLinearVelocity(Converter.convert(vec, tempVec)); in setLinearVelocity()
[all …]
DPhysicsCharacter.java69 private javax.vecmath.Vector3f tempVec = new javax.vecmath.Vector3f(); field in PhysicsCharacter
103 character.warp(Converter.convert(location, tempVec)); in warp()
115 character.setWalkDirection(Converter.convert(walkDirection, tempVec)); in setWalkDirection()
DPhysicsVehicle.java470 vehicle.getForwardVector(tempVec); in getForwardVector()
471 Converter.convert(tempVec, vector); in getForwardVector()
/external/jmonkeyengine/engine/src/terrain/Common/MatDefs/Terrain/
DTerrainLighting.vert40 vec3 tempVec = position.xyz * sign(posLight - 0.5) - (worldPos * posLight);
41 lightVec.xyz = tempVec;
42 float dist = length(tempVec);
44 lightDir.xyz = tempVec / vec3(dist);
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DPose.java52 private transient final Vector3f tempVec = new Vector3f(); field in Pose
78 tempVec.set(offset).multLocal(blend); in apply()
84 tempVec2.addLocal(tempVec); in apply()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DArrow.java51 private Vector3f tempVec = new Vector3f(); field in Arrow
84 Vector3f vec = tempVec.set(positions[i], in Arrow()
126 Vector3f vec = tempVec.set(positions[i], in setArrowExtent()
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/
DLighting.glsllib21 vec3 tempVec = position.xyz * sign(posLight - 0.5) - (worldPos * posLight);
22 float dist = length(tempVec);
25 lightDir.xyz = tempVec / dist;
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/
DDeferred.frag107 vec3 tempVec = position.xyz * sign(posLight - 0.5) - (worldPos * posLight);
109 float dist = length(tempVec);
111 lightDir.xyz = tempVec / vec3(dist);
113 lightVec = tempVec;
116 lightDir = vec4(normalize(tempVec), 1.0);
DLighting.vert85 vec3 tempVec = position.xyz * sign(posLight - 0.5) - (worldPos * posLight);
86 lightVec = tempVec;
88 float dist = length(tempVec);
90 lightDir.xyz = tempVec / vec3(dist);
92 lightDir = vec4(normalize(tempVec), 1.0);
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestAttachGhostObject.java59 private Vector3f tempVec = new Vector3f(); field in TestAttachGhostObject
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/
DLwjglGL1Renderer.java67 private Vector3f tempVec = new Vector3f(); field in LwjglGL1Renderer
542 pos = tempVec.set(dLight.getDirection()).negateLocal().normalizeLocal(); in setLighting()