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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
BlurShader | inst() factory | Returns the shared shader. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Inherited from ShaderProgram (7)
delete · unbind · getShader · canDraw · isAvailable · gradient · uniformGradient
Creation details
Section titled “Creation details”BlurShader inst() factory
Returns the shared shader.
Method details
Section titled “Method details”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
