Class CanvasShaderNode<Props, Computed>

CoreShaderNode is a base class that manages the shader prop values. When a prop is being updated the CoreShaderNode will notify either the associated CoreNode, or the Stage that there has been a change and a new render of the scene.

Type Parameters

  • Props extends object = Record<string, unknown>
  • Computed extends object = Record<string, unknown>

Hierarchy (view full)

Constructors

Properties

applySNR: boolean
computed: Partial<Computed> = {}
definedProps: undefined | Props = undefined
node: null | CoreNode = null
propsConfig: undefined | ShaderProps<Props>
render: ((this: CanvasShaderNode<Props, Record<string, unknown>>, ctx: CanvasRenderingContext2D, quad: QuadOptions, renderContext: (() => void)) => void)
resolvedProps: undefined | Props = undefined
shaderKey: string
shaderType: CoreShaderType<Props>
stage: Stage
update: undefined | (() => void) = undefined

Accessors

Methods