Function: getSharedWhiteTexture()
getSharedWhiteTexture(
gl):WebGLTexture
Defined in: rendering/shaders/utils/shared-placeholder-texture.ts:76
Returns a shared, opaque-white, 1x1 texture for gl, creating it on first
use. Intended for a sprite's u_texture when it should render as a flat,
tintable color rather than an image - the sprite shader multiplies the
sampled texture color by tintColor, so a white texture leaves
tintColor unmodified.
Parameters
gl
WebGL2RenderingContext
The WebGL2 rendering context.
Returns
WebGLTexture
The shared white texture.