Java Code Examples for com.badlogic.gdx.graphics.g3d.utils.RenderContext#begin()
The following examples show how to use
com.badlogic.gdx.graphics.g3d.utils.RenderContext#begin() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SkyboxShader.java From Mundus with Apache License 2.0 | 5 votes |
@Override public void begin(Camera camera, RenderContext context) { this.context = context; context.begin(); program.begin(); set(UNIFORM_PROJ_VIEW_MATRIX, camera.combined); transform.idt(); transform.translate(camera.position); set(UNIFORM_TRANS_MATRIX, transform); }
Example 2
Source File: TerrainShader.java From Mundus with Apache License 2.0 | 5 votes |
@Override public void begin(Camera camera, RenderContext context) { this.context = context; context.begin(); context.setCullFace(GL20.GL_BACK); 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); }
Example 3
Source File: ModelShader.java From Mundus with Apache License 2.0 | 5 votes |
@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(); set(UNIFORM_PROJ_VIEW_MATRIX, camera.combined); set(UNIFORM_CAM_POS, camera.position); }