Shader
Shader
Section titled “Shader” Category Effects
Is Pair Node: No
Creates a custom shader effect using SKSL Shader Language.
Using the Shader Node
Section titled “Using the Shader Node”Shader node is the most flexible and powerful node in the Node Graph, but it is the most advanced as well.
Check out our Mini SKSL Guide for a quick introduction to the SKSL Shader Language.
Uniforms
Section titled “Uniforms”Uniforms are variables that can be passed from Node Graph to the shader. They can be used to control various aspects of the shader’s behavior, such as colors or parameters. By default, any uniform written in a shader code will be automatically detected and added to the node’s inputs.
Built-in Uniforms
Section titled “Built-in Uniforms”There are some uniforms that are automatically handled by PixiEditor and are not exposed.
- iResolution: The resolution of current render output. It is usually a document size.
- iNormalizedTime: The normalized animation time, ranging from 0 to 1.
- iFrame: The current animation frame number.
- iImage: Refers to the
Background
input.
Color Space Type
Section titled “Color Space Type”The Color Space Type determines how the shader interprets color values. The available options are:
- Inherit: The shader will use the color space of the input image or context.
- sRGB: The shader will interpret color values in the sRGB color space.
- Linear: The shader will interpret color values in the linear color space.
Inputs
Section titled “Inputs” Background
Section titled “ Background ” Type: Painter
Default: unset
Painting instruction to draw first, before shader.
Color Space
Section titled “ Color Space ” Type: Color Space Type
Default: Inherit
The color space in which the shader operates. This determines how color values are interpreted and processed within the shader.
Shader Code
Section titled “ Shader Code ” Type: String
Default: unset
The SKSL shader code to execute. This code defines the operations performed by the shader on the input image.
Outputs
Section titled “Outputs” Output
Section titled “ Output ” Type: Painter
Default: unset
Painter instruction to draw the shader.