Dimmed the ambient light and specular light. #story[1261]

main
Joseph Gardner 8 years ago
parent 0b3ef992bc
commit 0944e5729a

@ -178,15 +178,15 @@ public class RaceController extends Controller {
private void initialiseView3D(VisualiserRaceEvent race) { private void initialiseView3D(VisualiserRaceEvent race) {
viewSubjects = FXCollections.observableArrayList(); viewSubjects = FXCollections.observableArrayList();
AmbientLight ambientLight = new AmbientLight(new Color(1, 1, 1, 0.75)); AmbientLight ambientLight = new AmbientLight(Color.web("#CCCCFF"));
ambientLight.setTranslateX(250); ambientLight.setTranslateX(250);
ambientLight.setTranslateZ(210); ambientLight.setTranslateZ(210);
ambientLight.setLightOn(true); ambientLight.setLightOn(true);
PointLight pointLight = new PointLight(); PointLight pointLight = new PointLight(Color.web("#AAAAFF"));
ambientLight.setTranslateX(250); pointLight.setTranslateX(250);
ambientLight.setTranslateZ(210); pointLight.setTranslateZ(210);
ambientLight.setLightOn(true); pointLight.setLightOn(true);
// Import boat mesh // Import boat mesh
URL asset = HostController.class.getClassLoader().getResource("assets/V1.2 Complete Boat.stl"); URL asset = HostController.class.getClassLoader().getResource("assets/V1.2 Complete Boat.stl");

Loading…
Cancel
Save