public AnimVertex() { super(); normal = new Vector3f(0, 0, 0); } }
public Fog() { active = false; this.colour = new Vector3f(0, 0, 0); this.density = 0; }
public Fog() { active = false; this.colour = new Vector3f(0, 0, 0); this.density = 0; }
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); }
private void setupLights() { SceneLight sceneLight = new SceneLight(); scene.setSceneLight(sceneLight); // Ambient Light sceneLight.setAmbientLight(new Vector3f(0.3f, 0.3f, 0.3f)); sceneLight.setSkyBoxLight(new Vector3f(1.0f, 1.0f, 1.0f)); // Directional Light float lightIntensity = 1.0f; Vector3f lightDirection = new Vector3f(0, 1, 1); DirectionalLight directionalLight = new DirectionalLight(new Vector3f(1, 1, 1), lightDirection, lightIntensity); sceneLight.setDirectionalLight(directionalLight); }
private void setupLights() { SceneLight sceneLight = new SceneLight(); scene.setSceneLight(sceneLight); // Ambient Light sceneLight.setAmbientLight(new Vector3f(1.0f, 1.0f, 1.0f)); // Directional Light float lightIntensity = 1.0f; Vector3f lightPosition = new Vector3f(-1, 0, 0); sceneLight.setDirectionalLight(new DirectionalLight(new Vector3f(1, 1, 1), lightPosition, lightIntensity)); }
public DummyGame() { renderer = new Renderer(); camera = new Camera(); cameraInc = new Vector3f(0.0f, 0.0f, 0.0f); angleInc = 0; lightAngle = 90; firstTime = true; }
public DummyGame() { renderer = new Renderer(); camera = new Camera(); cameraInc = new Vector3f(0, 0, 0); }
public DummyGame() { renderer = new Renderer(); camera = new Camera(); cameraInc = new Vector3f(0, 0, 0); }
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); }
public SpotLight(SpotLight spotLight) { this(new PointLight(spotLight.getPointLight()), new Vector3f(spotLight.getConeDirection()), 0); setCutOff(spotLight.getCutOff()); }
public SpotLight(SpotLight spotLight) { this(new PointLight(spotLight.getPointLight()), new Vector3f(spotLight.getConeDirection()), 0); setCutOff(spotLight.getCutOff()); }
public SpotLight(SpotLight spotLight) { this(new PointLight(spotLight.getPointLight()), new Vector3f(spotLight.getConeDirection()), 0); setCutOff(spotLight.getCutOff()); }
public SpotLight(SpotLight spotLight) { this(new PointLight(spotLight.getPointLight()), new Vector3f(spotLight.getConeDirection()), 0); setCutOff(spotLight.getCutOff()); }