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
Bind
(number index=0)
Parameters
index:
the texture index to use.