Search in sources :

Example 6 with Shader

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

the class Pass1ShaderProvider method getShader.

@Override
public Shader getShader(Renderable renderable) {
    for (Shader shader : shaders) {
        if (shader.canRender(renderable))
            return shader;
    }
    final Shader shader = createShader(renderable);
    shader.init();
    shaders.add(shader);
    return shader;
}
Also used : Shader(com.badlogic.gdx.graphics.g3d.Shader)

Aggregations

Shader (com.badlogic.gdx.graphics.g3d.Shader)6 Renderable (com.badlogic.gdx.graphics.g3d.Renderable)2 InputMultiplexer (com.badlogic.gdx.InputMultiplexer)1 AssetManager (com.badlogic.gdx.assets.AssetManager)1 PerspectiveCamera (com.badlogic.gdx.graphics.PerspectiveCamera)1 SpriteBatch (com.badlogic.gdx.graphics.g2d.SpriteBatch)1 Material (com.badlogic.gdx.graphics.g3d.Material)1 Model (com.badlogic.gdx.graphics.g3d.Model)1 ModelCache (com.badlogic.gdx.graphics.g3d.ModelCache)1 ModelInstance (com.badlogic.gdx.graphics.g3d.ModelInstance)1 ParticleShader (com.badlogic.gdx.graphics.g3d.particles.ParticleShader)1 DefaultShader (com.badlogic.gdx.graphics.g3d.shaders.DefaultShader)1 BaseShaderProvider (com.badlogic.gdx.graphics.g3d.utils.BaseShaderProvider)1 DefaultRenderableSorter (com.badlogic.gdx.graphics.g3d.utils.DefaultRenderableSorter)1 DefaultTextureBinder (com.badlogic.gdx.graphics.g3d.utils.DefaultTextureBinder)1 FirstPersonCameraController (com.badlogic.gdx.graphics.g3d.utils.FirstPersonCameraController)1 MeshPartBuilder (com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder)1 ModelBuilder (com.badlogic.gdx.graphics.g3d.utils.ModelBuilder)1 RenderContext (com.badlogic.gdx.graphics.g3d.utils.RenderContext)1 ShaderProgram (com.badlogic.gdx.graphics.glutils.ShaderProgram)1