some simplifications to the shader code

This commit is contained in:
codeanticode
2013-10-04 00:21:01 -04:00
parent eb72df7340
commit 8a60de14d3
2 changed files with 421 additions and 137 deletions

View File

@@ -41,12 +41,13 @@ import java.util.HashMap;
*/
public class PShader {
// shaders constants
static protected final int COLOR = 0;
static protected final int LIGHT = 1;
static protected final int TEXTURE = 2;
static protected final int TEXLIGHT = 3;
static protected final int LINE = 4;
static protected final int POINT = 5;
static protected final int LINE = 0;
static protected final int POINT = 1;
static protected final int POLY = 3;
static protected final int COLOR = 4;
static protected final int LIGHT = 5;
static protected final int TEXTURE = 6;
static protected final int TEXLIGHT = 7;
protected PApplet parent;
// The main renderer associated to the parent PApplet.