List of usage examples for com.badlogic.gdx.graphics GL20 GL_NONE
int GL_NONE
To view the source code for com.badlogic.gdx.graphics GL20 GL_NONE.
Click Source Link
From source file:com.cyphercove.doublehelix.BackgroundShader.java
License:Apache License
@Override public void begin(Camera camera, RenderContext context) { context.setDepthTest(GL20.GL_NONE); program.begin();/* ww w .j a v a 2s . c om*/ 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); program.begin();/*from ww w . j av a 2 s .co m*/ 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); program.begin();/* w ww .ja va 2s .c o m*/ 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.zombie.game.actors.SteeringActor.java
License:Apache License
public void setModelInstance(ModelInstance modelInstance) { this.modelInstance = modelInstance; this.transform = modelInstance.transform.val; for (Material m : modelInstance.materials) { m.set(new IntAttribute(IntAttribute.CullFace, GL20.GL_NONE)); m.set(new FloatAttribute(FloatAttribute.AlphaTest, 0.5f)); m.set(new BlendingAttribute(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA)); }/*from w w w . j a va 2 s . c om*/ //Get animations if any if (modelInstance.animations.size > 0) { animationController = new AnimationController(modelInstance); animationController.allowSameAnimation = true; animationController.animate(modelInstance.animations.get(0).id, -1, 1f, this, 1f); } }