BorderShader
final class BorderShader
Extends: ShaderProgram
Package: dev.joid.lib.shader.impl · Module: core · Source: BorderShader.java
The shader of the outline that BorderShaderPass draws around the alpha of a texture.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
BorderShader | inst() factory | Returns the shared shader. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | bind(float borderWidth, Color borderColor, float texelW, float texelH, boolean corners, BorderMode mode, float rectX1, float rectY1, float rectX2, float rectY2) | Binds the shader with a stroke of borderWidth texels in borderColor, gradient and animated colors included, the size of one texel texelW, texelH on 1, the corners and mode of BorderShaderPass, and the area rectX1, rectY1, rectX2, rectY2. |
Inherited from ShaderProgram (7)
delete · unbind · getShader · canDraw · isAvailable · gradient · uniformGradient
Creation details
Section titled “Creation details”BorderShader inst() factory
Returns the shared shader.
Method details
Section titled “Method details”void bind(float borderWidth, Color borderColor, float texelW, float texelH, boolean corners, BorderMode mode, float rectX1, float rectY1, float rectX2, float rectY2)
Binds the shader with a stroke of borderWidth texels in borderColor, gradient and animated colors included, the size of one texel texelW, texelH on 1, the corners and mode of BorderShaderPass, and the area rectX1, rectY1, rectX2, rectY2.
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
