Class PPShader
- java.lang.Object
-
- de.coreengine.rendering.programs.Shader
-
- de.coreengine.rendering.programs.pp.PPShader
-
- Direct Known Subclasses:
DofPPShader
,FogPPShader
,GaussianBlurPPShader
,HsbPPShader
,LightScatteringPPShader
,RadialBlurPPShader
public abstract class PPShader extends Shader
Shader for a post processing effect- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.programs.Shader
SHADERS_LOCATION
-
-
Constructor Summary
Constructors Constructor Description PPShader()
-
Method Summary
All Methods Instance Methods Abstract 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 abstract String
getPPFragShaderFile()
protected void
loadUniforms()
Loading uniform locationsvoid
setBaseTexture(int color, int depth)
Setting base post processing effect texturesprotected abstract void
setUniformLocations()
Setting the effect shader relevant uniforms.-
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
-
getPPFragShaderFile
protected abstract String getPPFragShaderFile()
-
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
-
setUniformLocations
protected abstract void setUniformLocations()
Setting the effect shader relevant uniforms.
-
setBaseTexture
public void setBaseTexture(int color, int depth)
Setting base post processing effect textures- Parameters:
color
- Input color texturedepth
- Input depth buffer texture
-
-