Class HsbEffect
- java.lang.Object
-
- de.coreengine.rendering.renderer.ppeffects.PostProcessingEffect
-
- de.coreengine.rendering.renderer.ppeffects.HsbEffect
-
public class HsbEffect extends PostProcessingEffect
Hue, saturation and value post processing effect- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.renderer.ppeffects.PostProcessingEffect
shader
-
-
Constructor Summary
Constructors Constructor Description HsbEffect()
Creating new Hue saturation and brightness effect
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImpliedEffects(List<PostProcessingEffect> effects)
Adding all effects that will be implied by this effect to the list.float
getBrightness()
float
getHue()
float
getSaturation()
void
setBrightness(float brightness)
Setting the brightness factor of this effect.void
setHue(float hue)
Setting the hue factor of this effect.void
setSaturation(float saturation)
Setting the saturation factor of this effect.protected void
setUniforms()
-
Methods inherited from class de.coreengine.rendering.renderer.ppeffects.PostProcessingEffect
exit, prepare
-
-
-
-
Method Detail
-
setHue
public void setHue(float hue)
Setting the hue factor of this effect. The output color will be calculated by
NewHue = OldHue * hue- Parameters:
hue
- New hue value
-
setSaturation
public void setSaturation(float saturation)
Setting the saturation factor of this effect. The output color will be calculated by
NewSaturation = OldSaturation * saturation- Parameters:
saturation
- New saturation value
-
setBrightness
public void setBrightness(float brightness)
Setting the brightness factor of this effect. The output color will be calculated by
NewBrightness = OldBrightness * brightness- Parameters:
brightness
- New brightness value
-
getHue
public float getHue()
- Returns:
- Hue value of the effect
-
getSaturation
public float getSaturation()
- Returns:
- Saturation value of the effect
-
getBrightness
public float getBrightness()
- Returns:
- Brightness value of the effect
-
setUniforms
protected void setUniforms()
- Specified by:
setUniforms
in classPostProcessingEffect
-
addImpliedEffects
public void addImpliedEffects(List<PostProcessingEffect> effects)
Description copied from class:PostProcessingEffect
Adding all effects that will be implied by this effect to the list.- Specified by:
addImpliedEffects
in classPostProcessingEffect
- Parameters:
effects
- List to add implied effects
-
-