Search in sources :

Example 1 with DefaultShader

use of com.badlogic.gdx.graphics.g3d.shaders.DefaultShader in project libgdx by libgdx.

the class BillboardParticleBatch method getShader.

private Shader getShader(Renderable renderable) {
    Shader shader = useGPU ? new ParticleShader(renderable, new ParticleShader.Config(mode)) : new DefaultShader(renderable);
    shader.init();
    return shader;
}
Also used : ParticleShader(com.badlogic.gdx.graphics.g3d.particles.ParticleShader) DefaultShader(com.badlogic.gdx.graphics.g3d.shaders.DefaultShader) Shader(com.badlogic.gdx.graphics.g3d.Shader) ParticleShader(com.badlogic.gdx.graphics.g3d.particles.ParticleShader) DefaultShader(com.badlogic.gdx.graphics.g3d.shaders.DefaultShader)

Aggregations

Shader (com.badlogic.gdx.graphics.g3d.Shader)1 ParticleShader (com.badlogic.gdx.graphics.g3d.particles.ParticleShader)1 DefaultShader (com.badlogic.gdx.graphics.g3d.shaders.DefaultShader)1