Shaders
The shader programs of JOID and of your own, the shader passes and the pipeline that chains them over an offscreen framebuffer. Learn: Shaders.
Main types
Section titled “Main types”| Type | Kind | Summary |
|---|---|---|
BlurShader | class | The shader of the one-axis blur that BlurShaderPass runs. |
BlurShaderPass | class | Blurs the previous result along one axis; chain a horizontal and a vertical pass for a full blur. |
BorderShader | class | The shader of the outline that BorderShaderPass draws around the alpha of a texture. |
BorderShaderPass | class | Outlines the shape of the previous result with a colored stroke that follows its alpha, rounded corners included. |
CircleShader | class | The shader of discs, which masks what is drawn outside a circle with a smooth edge. |
CircleShaderPass | class | Keeps only the disc of the previous result, with a smooth edge. |
GradientShader | class | The shader of linear gradients, which colors what is drawn along a line between two stops. |
IShaderPass | interface | One step of a ShaderPipeline, which binds a shader that reads the previous result as a texture. |
RoundedShader | class | The shader of rounded rectangles and rounded borders, which masks what is drawn outside a rounded box. |
RoundedShaderPass | class | Keeps only a rounded rectangle of the previous result, with smooth corners. |
ShaderFillType | enum | What the rounded and circle shaders mask: the texture tinted by the color, the texture alone, or the color alone. |
ShaderPassContext | class | What a shader pass needs to know about the area it runs on, the part of it rendered and the framebuffer that holds it. |
ShaderPipeline | class | Draws something into an offscreen framebuffer, runs it through a chain of shader passes, and draws the result in place. |
ShaderProgram | class | Base class of a shader of your own, loaded from JOID GLSL sources and created on the render bridge the first time it is used. |
ShadowShader | class | The shader of soft shadows, which draws the blurred silhouette of a rounded box. |
Supporting types
Section titled “Supporting types”Nested types and listeners that the main types use.
| Type | Kind | Summary |
|---|---|---|
BorderShader.BorderMode | enum | Where a border stroke sits relative to the edge of the shape. |
