From 60cec91731a350fe67e9b5ffe7a00d70e9026314 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Thu, 22 Aug 2019 22:45:00 -0400 Subject: [PATCH] Min shader. --- Camera.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Camera.java b/Camera.java index 5f214b9..ecdc609 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; } @@ -104,6 +104,14 @@ focalLength = 1; setAspect(4, 3); background = LA.newVector(0.8, 0.8, 0.8); + } + + void CreateMaterial(boolean multiply) + { + super.CreateMaterial(multiply); + + material.shift = 90; + material.cameralight = 0.2f; } void setAspect(int width, int height) @@ -319,7 +327,7 @@ location.set(lookAt); lookAt.set(cStatic.point1); - computeTransform(); + //computeTransform(); } //synchronized // june 2014 -- Gitblit v1.6.2