Documentation
›
API Reference
›
Object
›
Asset
›
Texture
Bind
Lua
C++
Binds a texture to a texture slot. The texture can then be read from a shader.
Syntax
void
Bind
(int index=0)
Parameters
index:
the texture index to use.