Skip to content

Commit

Permalink
Switched to new lit shader
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyegan committed Feb 28, 2014
1 parent 7f66574 commit 0917873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sketch3d.pde
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void setup() {

rotation = new PVector();

shader = loadShader("frag.glsl", "vert.glsl");
shader = loadShader("fogZLight_frag.glsl", "fogZLight_vert.glsl");
shader.set("fogNear", cameraPos.z + 0.0 );
shader.set("fogFar", cameraPos.z + 3500.0 );
println( red(bgColor) + " " + green(bgColor) + " " + blue(bgColor) );
Expand Down Expand Up @@ -234,6 +234,7 @@ void draw() {
}

/*************************************** DISPLAY **************************************/
directionalLight(hue(bgColor), saturation(bgColor), brightness(bgColor), 0, 1, 0.1);

if ( exportDXF ) {
beginRaw( DXF, "frame-####.dxf");
Expand Down

0 comments on commit 0917873

Please sign in to comment.