Class ParticleShader


  • public class ParticleShader
    extends Shader
    • Constructor Detail

      • ParticleShader

        public ParticleShader()
    • 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
      • prepareCam

        public void prepareCam​(Camera cam)
        Prepare camera to render next particles from
        Parameters:
        cam - Camera to render from
      • prepareParticles

        public void prepareParticles​(int texture)
        Preparing stuff for next particles
        Parameters:
        texture - TextureData of next particles
      • setNextTransform

        public void setNextTransform​(javax.vecmath.Vector2f size,
                                     javax.vecmath.Vector3f pos)
        Set transformation for next particle
        Parameters:
        size - Size of the next particle
        pos - Position of the next particle