Skip to content

Commit 7f0a60d

Browse files
committed
Fix shading and camera controls in M_1_4_01
1 parent 3f67473 commit 7f0a60d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

02_M/M_1_4_01/sketch.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var falloff;
4949
var midColor;
5050
var topColor;
5151
var bottomColor;
52-
var strokeColor;
5352
var threshold;
5453

5554
// ------ mouse interaction ------
@@ -84,7 +83,6 @@ function setup() {
8483
topColor = color(0, 0, 100);
8584
midColor = color(191, 99, 63);
8685
bottomColor = color(0, 0, 0);
87-
strokeColor = color(180, 100, 100);
8886
threshold = 0.30;
8987

9088
// ------ mouse interaction ------
@@ -101,7 +99,6 @@ function setup() {
10199

102100
function draw() {
103101
background(0, 0, 100);
104-
ambientLight(150);
105102

106103
// ------ set view ------
107104
push();
@@ -115,7 +112,7 @@ function draw() {
115112
}
116113
rotationX += (targetRotationX - rotationX) * 0.25;
117114
rotationZ += (targetRotationZ - rotationZ) * 0.25;
118-
rotateX(-rotationX);
115+
rotateX(rotationX);
119116
rotateZ(-rotationZ);
120117

121118
// ------ mesh noise ------
@@ -154,8 +151,6 @@ function draw() {
154151
interColor = lerpColor(midColor, topColor, amount);
155152
}
156153
fill(interColor);
157-
stroke(strokeColor);
158-
strokeWeight(1);
159154
vertex(x, y, z1 * zScale);
160155
vertex(x, y + tileSizeY, z2 * zScale);
161156
}

0 commit comments

Comments
 (0)