OptionalbeforeDraw?: (this: WebGlShaderNode<T>, node: CoreNode) => voidThis function is called before the draw call, here you can update the uniforms you use in the fragment / vertex shader. This function can be used to bind additional textures to the shader, or update uniforms that are not part of the props.
OptionalcanBatch?: (node: CoreNode, currentRenderOp: WebGlRenderOp) => booleanThis function is used to check if the shader can be reused based on quad info
fragment shader source for WebGl or WebGl2
OptionalsupportsIndexedTextures?: booleanOptionalupdate?: (this: WebGlShaderNode<T>, node: CoreNode) => voidThis function is called when one of the props is changed, here you can update the uniforms you use in the fragment / vertex shader.
Optionalvertex?: ShaderSource<T>vertex shader source for WebGl or WebGl2
Optionalwebgl1Extensions?: string[]extensions required for specific shader?
Optionalwebgl2Extensions?: string[]
This is the WebGL specific ShaderType