Skip to content

Commit 6735d06

Browse files
committed
fixes
1 parent 16df943 commit 6735d06

File tree

13 files changed

+28
-5
lines changed

13 files changed

+28
-5
lines changed

demos/builtinshapes.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
GLUtil.renderLoop(function(){
8888
pc.update();
8989
camera.update();
90+
scene.setDirectionalLight(0,camera.getPosition());
9091
scene.render();
9192
});
9293
//-->

demos/clock.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
clock.update();
124124
pc.update();
125125
camera.update();
126+
scene.setDirectionalLight(0,camera.getPosition());
126127
scene.render();
127128
});
128129
//-->

demos/curves.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
GLUtil.renderLoop(function(){
174174
pc.update();
175175
camera.update();
176+
scene.setDirectionalLight(0,camera.getPosition());
176177
scene.render();
177178
});
178179
//-->

demos/curvesexpr.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
GLUtil.renderLoop(function(){
217217
pc.update();
218218
camera.update();
219+
scene.setDirectionalLight(0,camera.getPosition());
219220
scene.render();
220221
});
221222
//-->

demos/implicit.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
GLUtil.renderLoop(function(){
233233
pc.update();
234234
camera.update();
235+
scene.setDirectionalLight(0,camera.getPosition());
235236
scene.render();
236237
});
237238
//-->

demos/obj.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
startfunc()
5353
GLUtil.renderLoop(function(){
5454
camera.update();
55+
scene.setDirectionalLight(0,camera.getPosition());
5556
scene.render();
5657
});
5758
//-->

demos/pathshapes.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
GLUtil.renderLoop(function(){
140140
pc.update();
141141
camera.update();
142+
scene.setDirectionalLight(0,camera.getPosition());
142143
scene.render();
143144
});
144145
//-->

demos/perspective.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
// Set up the render loop
185185
GLUtil.renderLoop(function(){
186186
camera.update();
187+
scene.setDirectionalLight(0,camera.getPosition());
187188
// Render the scene
188189
scene.render();
189190
});

demos/stl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
})
3636
GLUtil.renderLoop(function(){
3737
camera.update();
38+
scene.setDirectionalLight(0,camera.getPosition());
3839
scene.render();
3940
});
4041
//-->

demos/surfaces.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@
310310
GLUtil.renderLoop(function(){
311311
pc.update();
312312
camera.update();
313+
scene.setDirectionalLight(0,camera.getPosition());
313314
scene.render();
314315
});
315316
//-->

0 commit comments

Comments
 (0)