v0.4.2: fixed bugs with new shader programs

This commit is contained in:
Evan Debenham 2016-09-05 03:25:16 -04:00
parent b70349256d
commit d754f17edd
2 changed files with 1 additions and 14 deletions

View File

@ -48,6 +48,7 @@ public class NoosaScript extends Script {
public NoosaScript() {
super();
compile( shader() );
uCamera = uniform( "uCamera" );

View File

@ -30,20 +30,6 @@ import com.watabou.glscripts.Script;
// if this script is to be used many times try to block them together
public class NoosaScriptNoLighting extends NoosaScript {
public NoosaScriptNoLighting() {
compile( shader() );
//we can use the same components as regular noosascript
NoosaScript n = NoosaScript.get();
uCamera = n.uCamera;
uModel = n.uModel;
uTex = n.uTex;
aXY = n.aXY;
aUV = n.aUV;
}
@Override
public void lighting(float rm, float gm, float bm, float am, float ra, float ga, float ba, float aa) {
//Does nothing