Optionaluniforms: Record<string, UniformValue>Custom fragment shader code
Map of compiled GLShader instances per region key
Set of region keys that need uniform updates
Currently stored uniform values
Map of textures to be bound to this shader
Number of texture units reserved by this custom shader
Custom vertex shader code
Applies current uniforms and texture unit mappings to the region-specific shader.
The region key.
Map of texture uniform names to assigned texture unit indices.
Retrieves or compiles a customized GLShader for a specific region.
The Region requesting the shader.
The region key.
OptionalbaseVS: stringThe base vertex shader template.
OptionalbaseFS: stringThe base fragment shader template.
The combined and compiled GLShader.
Updates uniform values or textures for the custom shader.
Map of uniform values or WebGL textures to apply.
A wrapper for creating and managing custom shaders across multiple rendering regions.