Esempio n. 1
0
  public void render() {

    RenderUtil.setClearColor(Transform.getCamera().getPos().div(2048f).abs());
    _shader.bind();
    _shader.updateUniforms(
        _transform.getTransformation(), _transform.getProjectedTransformation(), _material);
    _mesh.draw();
  }
Esempio n. 2
0
 public void render() {
   Shader shader = Game.getLevel().getShader();
   shader.updateUniforms(
       transform.getTransformation(), transform.getProjectedTransformation(), material);
   mesh.draw();
 }