Class AnimatedEntityShader
- java.lang.Object
-
- de.coreengine.rendering.programs.Shader
-
- de.coreengine.rendering.programs.entity.AnimatedEntityShader
-
public class AnimatedEntityShader extends Shader
Shader for the animated entity renderer- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.programs.Shader
SHADERS_LOCATION
-
-
Constructor Summary
Constructors Constructor Description AnimatedEntityShader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addShaders()
Adding shaders to programprotected void
bindAttribs()
Binding all vbo attributes to shader attribute ("in" variable)protected void
loadUniforms()
Loading uniform locationsvoid
prepareEntity(AnimatedEntity entity)
Preparing an animated entityvoid
prepareMaterial(Material mat)
Preparing shader for next materialvoid
setCamera(Camera cam)
void
setClipPlane(float x, float y, float z, float w)
Setting clip plane for next entity-
Methods inherited from class de.coreengine.rendering.programs.Shader
addShader, bindAttribute, bindTexture, bindTextureUnit, getUniformLocation, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniformArray1f, setUniformArray1i, setUniformArray2f, setUniformArray3f, start, stop
-
-
-
-
Method Detail
-
addShaders
protected void addShaders()
Description copied from class:Shader
Adding shaders to program- Specified by:
addShaders
in classShader
-
bindAttribs
protected void bindAttribs()
Description copied from class:Shader
Binding all vbo attributes to shader attribute ("in" variable)- Specified by:
bindAttribs
in classShader
-
loadUniforms
protected void loadUniforms()
Description copied from class:Shader
Loading uniform locations- Specified by:
loadUniforms
in classShader
-
setClipPlane
public void setClipPlane(float x, float y, float z, float w)
Setting clip plane for next entity- Parameters:
x
- X value of the plane normaly
- Y value of the plane normalz
- Z value of the plane normalw
- Distance of the plane normal
-
setCamera
public void setCamera(Camera cam)
- Parameters:
cam
- camera to render next models from
-
prepareEntity
public void prepareEntity(AnimatedEntity entity)
Preparing an animated entity- Parameters:
entity
- Animated entity to prepare
-
prepareMaterial
public void prepareMaterial(Material mat)
Preparing shader for next material- Parameters:
mat
- Material to prepare
-
-