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
OptionalonSdfBind?: (this: GlContextWrapper, props: T) => voidonly used for SDF shader, will be removed in the future.
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