APIdia Launch Partner
Top Description Methods
com.badlogic.gdx.graphics.g3d.utils

public Interface ShaderProvider

extends Disposable
Known Direct Implementers
com.badlogic.gdx.graphics.g3d.utils.BaseShaderProvider
Imports
com.badlogic.gdx.graphics.g3d.Renderable, .Shader, com.badlogic.gdx.utils.Disposable

Returns Shader instances for a Renderable on request. Also responsible for disposing of any created Shader instances on a call to Disposable#dispose().
Author
badlogic

Method Summary

Modifier and TypeMethod and Description
public Shader

Returns:

the Shader to be used for the RenderInstance
getShader
(Renderable
the Renderable
renderable
)

Returns a Shader for the given Renderable.

Inherited from com.badlogic.gdx.utils.Disposable:
dispose

Method Detail

getShaderback to summary
public Shader getShader(Renderable renderable)

Returns a Shader for the given Renderable. The RenderInstance may already contain a Shader, in which case the provider may decide to return that.

Parameters
renderable:Renderable

the Renderable

Returns:Shader

the Shader to be used for the RenderInstance