@lightningjs/renderer
    Preparing search index...

    Class WebGlShaderNode<Props>

    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>

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    definedProps: undefined | Props = undefined
    node: null | CoreNode = null
    propsConfig: undefined | ShaderProps<Props>
    resolvedProps: undefined | Props = undefined
    shaderKey: string
    shaderType: CoreShaderType<Props>
    stage: Stage
    time: undefined | boolean | ((stage: Stage) => number) = undefined
    uniforms: UniformCollection = ...
    update: undefined | (() => void) = undefined

    Accessors

    Methods

    • Sets the value of a single float uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: number

      Returns void

    • Sets the value of a float array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of values to set.

      Returns void

    • Sets the value of a single integer uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: number

      Returns void

    • Sets the value of an integer array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Int32Array

        The array of values to set.

      Returns void

    • Sets the value of a vec2 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      Returns void

    • Sets the value of a vec2 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Vec2

        The array of vec2 values to set.

      Returns void

    • Sets the value of a vec2 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of vec2 values to set as FloatArray.

      Returns void

    • Sets the value of a ivec2 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      Returns void

    • Sets the value of an ivec2 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Int32Array

        The array of ivec2 values to set.

      Returns void

    • Sets the value of a vec3 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      • v2: number

        The third component of the vector.

      Returns void

    • Sets the value of a vec3 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Vec3

      Returns void

    • Sets the value of a vec3 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of vec3 values to set.

      Returns void

    • Sets the value of a ivec3 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      • v2: number

        The third component of the vector.

      Returns void

    • Sets the value of an ivec3 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Int32Array

        The array of ivec3 values to set.

      Returns void

    • Sets the value of a vec4 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      • v2: number

        The third component of the vector.

      • v3: number

        The fourth component of the vector.

      Returns void

    • Sets the value of a vec4 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of vec4 values to set.

      Returns void

    • Sets the value of a ivec4 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • v0: number

        The first component of the vector.

      • v1: number

        The second component of the vector.

      • v2: number

        The third component of the vector.

      • v3: number

        The fourth component of the vector.

      Returns void

    • Sets the value of an ivec4 array uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Int32Array

        The array of ivec4 values to set.

      Returns void

    • Sets the value of a mat2 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of mat2 values to set.

      Returns void

    • Sets the value of a mat2 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of mat2 values to set.

      Returns void

    • Sets the value of a mat4 uniform variable.

      Parameters

      • location: string

        The location of the uniform variable.

      • value: Float32Array

        The array of mat4 values to set.

      Returns void