Skip to content

BlurShader

final class BlurShader
Extends: ShaderProgram
Package: dev.joid.lib.shader.impl · Module: core · Source: BlurShader.java

The shader of the one-axis blur that BlurShaderPass runs.

ReturnsSignatureSummary
BlurShaderinst() factoryReturns the shared shader.

ReturnsSignatureSummary
voidbind(float radius, float dirX, float dirY, float texelW, float texelH)Binds the shader with a radius in texels, the direction dirX, dirY (1, 0 horizontal, 0, 1 vertical) and the size of one texel texelW, texelH on 1.
Inherited from ShaderProgram (7)

delete · unbind · getShader · canDraw · isAvailable · gradient · uniformGradient

BlurShader inst() factory

Returns the shared shader.

void bind(float radius, float dirX, float dirY, float texelW, float texelH)

Binds the shader with a radius in texels, the direction dirX, dirY (1, 0 horizontal, 0, 1 vertical) and the size of one texel texelW, texelH on 1.


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