Class ShaderUniform

The encapsulation of each uniform variable, including its cache value, data upload method, and data storage address.

Hierarchy

  • ShaderUniform

Constructors

Properties

_colorSpace: ColorSpace
_gl: WebGLRenderingContext
applyFunc: ((shaderUniform: ShaderUniform, value: ShaderPropertyValueType) => void)

Type declaration

    • (shaderUniform: ShaderUniform, value: ShaderPropertyValueType): void
    • Parameters

      Returns void

cacheValue: number | Vector2 | Vector3 | Vector4
location: WebGLUniformLocation
name: string
propertyId: number
textureDefault: Texture | Texture[]
textureIndex: number | number[]

Methods

Generated using TypeDoc