Updted shader examples

This commit is contained in:
codeanticode
2012-07-23 04:34:07 +00:00
parent 383aaffe6d
commit 25a9023092
10 changed files with 32 additions and 32 deletions
@@ -19,8 +19,8 @@ public void setup() {
noStroke();
fill(204);
badPrint = (PShader)loadShader("BadPrintVert.glsl", "BadPrintFrag.glsl", PShader.LIT);
shader(badPrint, PShader.LIT);
badPrint = loadShader(PShader.LIT, "BadPrintFrag.glsl", "BadPrintVert.glsl");
shader(badPrint);
sphereDetail(60);
@@ -44,7 +44,7 @@ public void draw() {
background(0);
if (enabled) {
shader(badPrint, PShader.LIT);
shader(badPrint);
badPrint.set("Scale", scaleR, scaleG, scaleB);
badPrint.set("Offset", offsetR, offsetG, offsetB);