BlurShaderPass
class BlurShaderPass
Implements: IShaderPass
Package: dev.joid.lib.shader.pipeline.pass · Module: core · Source: BlurShaderPass.java
Blurs the previous result along one axis; chain a horizontal and a vertical pass for a full blur.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
BlurShaderPass | create(float radius, boolean horizontal) factory | Creates a blur of radius design pixels, along X when horizontal is true, along Y otherwise. |
| BlurShaderPass(float radius, boolean horizontal) protected | Creates the pass, for a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | bind(ShaderPassContext context) | Binds the blur shader with the radius in screen pixels and the direction of the pass. |
void | unbind() | Unbinds the blur shader. |
float | expansion() | Returns the radius: the blur spreads that far outside the area. |
double | reach(double scale) | Returns the radius in screen pixels, at least 32, plus one pixel. |
Creation details
Section titled “Creation details”create
Section titled “create”BlurShaderPass create(float radius, boolean horizontal) factory
Creates a blur of radius design pixels, along X when horizontal is true, along Y otherwise.
BlurShaderPass
Section titled “BlurShaderPass”BlurShaderPass(float radius, boolean horizontal) protected
Creates the pass, for a subclass.
Method details
Section titled “Method details”void bind(ShaderPassContext context)
Binds the blur shader with the radius in screen pixels and the direction of the pass.
unbind
Section titled “unbind”void unbind()
Unbinds the blur shader.
expansion
Section titled “expansion”float expansion()
Returns the radius: the blur spreads that far outside the area.
double reach(double scale)
Returns the radius in screen pixels, at least 32, plus one pixel.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
