Sets the texture to be bound to the next available texture unit and returns the unit id.
name | type | arguments | description |
---|---|---|---|
texture | WebGLTexture | <optional> |
WebGLTexture that will be assigned to the current batch. If not given uses |
The assigned texture unit.