use of com.watabou.noosa.NoosaScript in project shattered-pixel-dungeon-gdx by 00-Evan.
the class CharSprite method draw.
@Override
public void draw() {
if (texture == null || (!dirty && buffer == null))
return;
if (renderShadow) {
if (dirty) {
verticesBuffer.position(0);
verticesBuffer.put(vertices);
if (buffer == null)
buffer = new Vertexbuffer(verticesBuffer);
else
buffer.updateVertices(verticesBuffer);
dirty = false;
}
NoosaScript script = script();
texture.bind();
script.camera(camera());
updateMatrix();
script.uModel.valueM4(shadowMatrix);
script.lighting(0, 0, 0, am * .6f, 0, 0, 0, aa * .6f);
script.drawQuad(buffer);
}
super.draw();
}
use of com.watabou.noosa.NoosaScript in project shattered-pixel-dungeon-gdx by 00-Evan.
the class Flare method drawRays.
private void drawRays() {
NoosaScript script = NoosaScript.get();
texture.bind();
script.uModel.valueM4(matrix);
script.lighting(rm, gm, bm, am, ra, ga, ba, aa);
script.camera(camera);
script.drawElements(vertices, indices, nRays * 3);
}
use of com.watabou.noosa.NoosaScript in project pixel-dungeon-remix by NYRDS.
the class Flare method drawRays.
private void drawRays() {
NoosaScript script = NoosaScript.get();
texture.bind();
script.uModel.valueM4(matrix);
script.lighting(rm, gm, bm, am, ra, ga, ba, aa);
script.camera(camera);
script.drawElements(vertices, indices, nRays * 3);
}
Aggregations