v0.4.2: Implemented no-lighting shader

Gives a very big performance boost on older devices
This commit is contained in:
Evan Debenham
2016-09-05 01:32:19 -04:00
parent 182b24d9ae
commit 6ed1ec2214
8 changed files with 120 additions and 13 deletions

View File

@@ -254,14 +254,11 @@ public class Tilemap extends Visual {
|| camH + camH < 0)
return;
NoosaScript script = NoosaScript.get();
NoosaScript script = NoosaScriptNoLighting.get();
texture.bind();
script.uModel.valueM4( matrix );
script.lighting(
rm, gm, bm, am,
ra, ga, ba, aa );
script.camera( camera );