public void render(double now) { double delta = clock.getDelta(); TWEEN.update(); controls.update(); if (mixer != null) { mixer.update(delta); } scene .getFog() .getColor() .setHSL( 0.63, 0.05, parameters.getDouble( "control")); // scene.fog.color.setHSL( 0.63, 0.05, parameters.control ); renderer.setClearColor(scene.getFog().getColor()); // renderer.setClearColor( scene.fog.color ); sunLight.setIntensity( parameters.getDouble("control") * 0.7 + 0.3); // sunLight.intensity = parameters.control * 0.7 + 0.3; pointLight.setIntensity( -parameters.getDouble("control") * 0.5 + 1); // pointLight.intensity = - parameters.control * 0.5 + 1; pointLight .getColor() .setHSL( 0.1, 0.75, parameters.getDouble("control") * 0.5 + 0.5); // pointLight.color.setHSL( 0.1, 0.75, parameters.control * 0.5 + 0.5 ); // render cube map mesh.setVisible(false); // mesh.visible = false; renderer.setAutoClear(true); // renderer.autoClear = true; cubeCamera.getPosition().copy(mesh.getPosition()); // cubeCamera.position.copy( mesh.position ); cubeCamera.updateCubeMap(renderer, scene); renderer.setAutoClear(false); // renderer.autoClear = false; mesh.setVisible(true); // mesh.visible = true; renderer.render(scene, camera); }