Class RadialBlurPPShader
- java.lang.Object
-
- de.coreengine.rendering.programs.Shader
-
- de.coreengine.rendering.programs.pp.PPShader
-
- de.coreengine.rendering.programs.pp.RadialBlurPPShader
-
public class RadialBlurPPShader extends PPShader
Shader for the radial blur effect- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.programs.Shader
SHADERS_LOCATION
-
-
Constructor Summary
Constructors Constructor Description RadialBlurPPShader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPPFragShaderFile()
void
prepareBlur(float intensity, float brightness, javax.vecmath.Vector2f origin, int quality)
Preparing the shader for the next blurvoid
setSize(javax.vecmath.Vector2f size)
Setting the size of the next to blur image texel.
vec2(1.0f / image.width, 1.0f / image.height)protected void
setUniformLocations()
Setting the effect shader relevant uniforms.-
Methods inherited from class de.coreengine.rendering.programs.pp.PPShader
addShaders, bindAttribs, loadUniforms, setBaseTexture
-
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 String getPPFragShaderFile()
- Specified by:
getPPFragShaderFile
in classPPShader
-
setUniformLocations
protected void setUniformLocations()
Description copied from class:PPShader
Setting the effect shader relevant uniforms.- Specified by:
setUniformLocations
in classPPShader
-
setSize
public void setSize(javax.vecmath.Vector2f size)
Setting the size of the next to blur image texel.
vec2(1.0f / image.width, 1.0f / image.height)- Parameters:
size
- Size of a texel of the next to blur image
-
prepareBlur
public void prepareBlur(float intensity, float brightness, javax.vecmath.Vector2f origin, int quality)
Preparing the shader for the next blur- Parameters:
intensity
- Intensity of the blurbrightness
- Brightnessof the blurorigin
- Origin of the blurquality
- Quality of the blur
-
-