From 6266c8a4b2485b29a7d5bcb217460d7aad3e1c4a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 25 Aug 2019 20:58:10 -0400 Subject: [PATCH] Proto version slider. --- Camera.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Camera.java b/Camera.java index b729918..0195701 100644 --- a/Camera.java +++ b/Camera.java @@ -52,7 +52,7 @@ perspective = true; break; case 1: // '\001' - location = LA.newVector(0, 0, 4); + location = LA.newVector(4, 0, 0); perspective = false; break; case 2: // '\002' @@ -63,7 +63,7 @@ //LA.matXRotate(fromScreen, LA.toRadians(90)); break; case 3: // '\003' - location = LA.newVector(4, 0, 0); + location = LA.newVector(0, 0, 4); //LA.matZRotate(toScreen, LA.toRadians(-90)); //LA.matXRotate(toScreen, LA.toRadians(-90)); //LA.matXRotate(fromScreen, LA.toRadians(90)); @@ -71,7 +71,7 @@ perspective = false; break; case 4: // Default light - location = LA.newVector(-10, 30, 20); + location = LA.newVector(-5, 15, 10); perspective = false; break; } @@ -106,6 +106,15 @@ background = LA.newVector(0.8, 0.8, 0.8); } + void CreateMaterial(boolean multiply) + { + super.CreateMaterial(multiply); + + material.shift = 90; + material.cameralight = 0.2f; + material.shadowbias = 10; + } + void setAspect(int width, int height) { //hAspect = width; -- Gitblit v1.6.2