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 voidaddImpliedEffects(List<PostProcessingEffect> effects)Adding all effects that will be implied by this effect to the list.floatgetBrightness()floatgetHue()floatgetSaturation()voidsetBrightness(float brightness)Setting the brightness factor of this effect.voidsetHue(float hue)Setting the hue factor of this effect.voidsetSaturation(float saturation)Setting the saturation factor of this effect.protected voidsetUniforms()-
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:
setUniformsin classPostProcessingEffect
-
addImpliedEffects
public void addImpliedEffects(List<PostProcessingEffect> effects)
Description copied from class:PostProcessingEffectAdding all effects that will be implied by this effect to the list.- Specified by:
addImpliedEffectsin classPostProcessingEffect- Parameters:
effects- List to add implied effects
-
-