Class ShaderState


  • public final class ShaderState
    extends Object
    ShaderState allows to sharing data between shader programs, while updating the attribute and uniform locations when switching.

    This allows seamless switching of programs using almost same data but performing different artifacts.

    A used ShaderState is attached to the current GL context and can be retrieved via #getShaderState(GL).