Fixed direction signs in Directional example

This commit is contained in:
codeanticode
2012-02-11 05:30:26 +00:00
parent c02ab789fd
commit 07b6b8630b
@@ -19,7 +19,7 @@ void draw() {
background(0);
float dirY = (mouseY / float(height) - 0.5) * 2;
float dirX = (mouseX / float(width) - 0.5) * 2;
directionalLight(204, 204, 204, dirX, dirY, -1);
directionalLight(204, 204, 204, -dirX, -dirY, -1);
translate(width/2 - 100, height/2, 0);
sphere(80);
translate(200, 0, 0);