List of usage examples for com.badlogic.gdx.graphics.g3d.utils RenderContext setCullFace
public void setCullFace(final int face)
From source file:com.cyphercove.doublehelix.BackgroundShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { context.setDepthTest(GL20.GL_NONE);//w ww . j av a 2s. co m program.begin(); viewProjTrans.set(camera.combined); context.setCullFace(GL20.GL_BACK); context.setBlending(false, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); texture.bind(0); program.setUniformi(u_texture, 0); program.setUniformf(u_color, color.r, color.g, color.b); program.setUniformf(u_ambient, MainRenderer.AMBIENT_BRIGHTNESS); }
From source file:com.cyphercove.doublehelix.BlackShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { context.setDepthTest(GL20.GL_NONE);//from w w w. j a va2s . c o m program.begin(); viewProjTrans.set(camera.combined); context.setCullFace(GL20.GL_BACK); context.setBlending(false, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); }
From source file:com.cyphercove.doublehelix.UnlitShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { context.setDepthTest(GL20.GL_NONE);/*from w w w . j a v a2s. com*/ program.begin(); viewProjTrans.set(camera.combined); context.setDepthTest(GL20.GL_LEQUAL); context.setCullFace(GL20.GL_BACK); context.setBlending(false, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); texture.bind(0); program.setUniformi(u_texture, 0); }
From source file:com.github.fauu.helix.core.GeneralShader.java
License:Open Source License
@Override public void begin(Camera camera, RenderContext context) { this.camera = camera; this.context = context; program.begin();/*ww w .j a v a 2s . co m*/ program.setUniformMatrix(u_projTrans, camera.combined); context.setBlending(true, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); context.setCullFace(GL20.GL_BACK); context.setDepthTest(GL20.GL_LEQUAL, 0, 1); context.setDepthMask(true); }
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();//w w w. j a va 2 s . com 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); }