Skip to main content

Function: bindTextureToUniform()

bindTextureToUniform(gl, texture, uniformLocation, textureUnit): void

Defined in: rendering/shaders/utils/bind-texture-to-uniform.ts:3

Parameters

gl

WebGLRenderingContext

texture

WebGLTexture

uniformLocation

WebGLUniformLocation

textureUnit

number = 0

Returns

void