Function: getSharedBlackTexture()
getSharedBlackTexture(
gl):WebGLTexture
Defined in: rendering/shaders/utils/shared-placeholder-texture.ts:57
Returns a shared, opaque-black, 1x1 texture for gl, creating it on first
use. Intended for sampler2D uniforms that must always be bound to
something (to avoid a data-dependent fragment shader branch) but should
contribute nothing when no real texture is supplied.
Parameters
gl
WebGL2RenderingContext
The WebGL2 rendering context.
Returns
WebGLTexture
The shared black texture.