Skip to content

Commit 4ced16c

Browse files
committed
Fix Rotate Push Pop lighting, Move Eye camera distance, Perspective far range
1 parent 6010ff3 commit 4ced16c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

assets/examples_js/Basics/transform/Rotate_Push_Pop/Rotate_Push_Pop.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ function setup() {
99

1010
function draw() {
1111
background(0, 0, 26);
12-
ambientLight(100);
13-
directionalLight(255, 255, 255, 0.5, 0.5, -1);
12+
pointLight(255, 255, 255, 0, 0, 300);
13+
pointLight(180, 180, 180, 0, 0, -300);
14+
ambientLight(80);
1415
for (let i = 0; i < num; i++) {
1516
let gray = map(i, 0, num - 1, 0, 255);
1617
push();

examples/rotate-push-pop.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ <h1>Rotate Push Pop</h1>
7979
8080
function draw() {
8181
background(0, 0, 26);
82-
ambientLight(100);
83-
directionalLight(255, 255, 255, 0.5, 0.5, -1);
82+
pointLight(255, 255, 255, 0, 0, 300);
83+
pointLight(180, 180, 180, 0, 0, -300);
84+
ambientLight(80);
8485
for (let i = 0; i < num; i++) {
8586
let gray = map(i, 0, num - 1, 0, 255);
8687
push();

0 commit comments

Comments
 (0)