Class ShadowMapShader


  • public class ShadowMapShader
    extends Shader
    • Constructor Detail

      • ShadowMapShader

        public ShadowMapShader()
    • Method Detail

      • addShaders

        protected void addShaders()
        Description copied from class: Shader
        Adding shaders to program
        Specified by:
        addShaders in class Shader
      • bindAttribs

        protected void bindAttribs()
        Description copied from class: Shader
        Binding all vbo attributes to shader attribute ("in" variable)
        Specified by:
        bindAttribs in class Shader
      • loadUniforms

        protected void loadUniforms()
        Description copied from class: Shader
        Loading uniform locations
        Specified by:
        loadUniforms in class Shader
      • prepareEntity

        public void prepareEntity​(Entity entity)
        Prepare shader for next entity to render
        Parameters:
        entity - Next entity to render
      • setVPMat

        public void setVPMat​(javax.vecmath.Matrix4f mat)
        Setting the vpMat variable of the shader
        Parameters:
        mat - Matrix to set as vpMat