本文整理了Java中org.lwjglb.engine.graph.Transformation.updateGenericViewMatrix()
方法的一些代码示例,展示了Transformation.updateGenericViewMatrix()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transformation.updateGenericViewMatrix()
方法的具体详情如下:
包路径:org.lwjglb.engine.graph.Transformation
类名称:Transformation
方法名:updateGenericViewMatrix
暂无
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateLightViewMatrix(Vector3f position, Vector3f rotation) {
return updateGenericViewMatrix(position, rotation, lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateViewMatrix() {
return Transformation.updateGenericViewMatrix(position, rotation, viewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateViewMatrix() {
return Transformation.updateGenericViewMatrix(position, rotation, viewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateLightViewMatrix(Vector3f position, Vector3f rotation) {
return updateGenericViewMatrix(position, rotation, lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
private void updateLightViewMatrix(Vector3f lightDirection, Vector3f lightPosition) {
float lightAngleX = (float) Math.toDegrees(Math.acos(lightDirection.z));
float lightAngleY = (float) Math.toDegrees(Math.asin(lightDirection.x));
float lightAngleZ = 0;
Transformation.updateGenericViewMatrix(lightPosition, new Vector3f(lightAngleX, lightAngleY, lightAngleZ), lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
private void updateLightViewMatrix(Vector3f lightDirection, Vector3f lightPosition) {
float lightAngleX = (float) Math.toDegrees(Math.acos(lightDirection.z));
float lightAngleY = (float) Math.toDegrees(Math.asin(lightDirection.x));
float lightAngleZ = 0;
Transformation.updateGenericViewMatrix(lightPosition, new Vector3f(lightAngleX, lightAngleY, lightAngleZ), lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
private void updateLightViewMatrix(Vector3f lightDirection, Vector3f lightPosition) {
float lightAngleX = (float) Math.toDegrees(Math.acos(lightDirection.z));
float lightAngleY = (float) Math.toDegrees(Math.asin(lightDirection.x));
float lightAngleZ = 0;
Transformation.updateGenericViewMatrix(lightPosition, new Vector3f(lightAngleX, lightAngleY, lightAngleZ), lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
private void updateLightViewMatrix(Vector3f lightDirection, Vector3f lightPosition) {
float lightAngleX = (float) Math.toDegrees(Math.acos(lightDirection.z));
float lightAngleY = (float) Math.toDegrees(Math.asin(lightDirection.x));
float lightAngleZ = 0;
Transformation.updateGenericViewMatrix(lightPosition, new Vector3f(lightAngleX, lightAngleY, lightAngleZ), lightViewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateViewMatrix(Camera camera) {
return updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), viewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public Matrix4f updateViewMatrix(Camera camera) {
return updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), viewMatrix);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public void updateListenerPosition(Camera camera) {
// Update camera matrix with camera data
Transformation.updateGenericViewMatrix(camera.getPosition(), camera.getRotation(), cameraMatrix);
listener.setPosition(camera.getPosition());
Vector3f at = new Vector3f();
cameraMatrix.positiveZ(at).negate();
Vector3f up = new Vector3f();
cameraMatrix.positiveY(up);
listener.setOrientation(at, up);
}
内容来源于网络,如有侵权,请联系作者删除!