Skip to content

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.

ReturnsSignatureSummary
BlurShaderPasscreate(float radius, boolean horizontal) factoryCreates a blur of radius design pixels, along X when horizontal is true, along Y otherwise.
BlurShaderPass(float radius, boolean horizontal) protectedCreates the pass, for a subclass.

ReturnsSignatureSummary
voidbind(ShaderPassContext context)Binds the blur shader with the radius in screen pixels and the direction of the pass.
voidunbind()Unbinds the blur shader.
floatexpansion()Returns the radius: the blur spreads that far outside the area.
doublereach(double scale)Returns the radius in screen pixels, at least 32, plus one pixel.

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.

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.


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

Report a problem with this page