v0.7.5: added support for more dynamic custom tilemaps

This commit is contained in:
Evan Debenham
2019-09-22 23:43:03 -04:00
parent 59186a3840
commit 96dd6eff82
3 changed files with 26 additions and 3 deletions

View File

@@ -245,17 +245,24 @@ public class Tilemap extends Visual {
if (length <= 0)
return;*/
NoosaScript script = NoosaScriptNoLighting.get();
NoosaScript script = script();
texture.bind();
script.uModel.valueM4( matrix );
script.lighting(
rm, gm, bm, am,
ra, ga, ba, aa );
script.camera( camera );
script.drawQuadSet( buffer, size, 0 );
}
protected NoosaScript script(){
return NoosaScriptNoLighting.get();
}
@Override
public void destroy() {