List of usage examples for com.badlogic.gdx.graphics.g3d.utils RenderContext begin
public void begin()
From source file:com.mbrlabs.mundus.commons.shaders.EntityShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { this.context = context; context.begin(); this.context.setCullFace(GL20.GL_BACK); this.context.setDepthTest(GL20.GL_LEQUAL, 0f, 1f); this.context.setDepthMask(true); program.begin();/*w ww . j ava 2s . c o m*/ set(UNIFORM_PROJ_VIEW_MATRIX, camera.combined); set(UNIFORM_CAM_POS, camera.position); }
From source file:com.mbrlabs.mundus.commons.shaders.SkyboxShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { this.context = context; context.begin(); program.begin();/*from w w w .j a va 2 s .c om*/ set(UNIFORM_PROJ_VIEW_MATRIX, camera.combined); transform.idt(); transform.translate(camera.position); set(UNIFORM_TRANS_MATRIX, transform); }
From source file:com.mbrlabs.mundus.commons.shaders.TerrainShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { this.context = context; context.begin(); context.setCullFace(GL20.GL_BACK);// ww w . ja v a2 s. c om this.context.setDepthTest(GL20.GL_LEQUAL, 0f, 1f); this.context.setDepthMask(true); program.begin(); set(UNIFORM_PROJ_VIEW_MATRIX, camera.combined); set(UNIFORM_CAM_POS, camera.position); }