EntityTexture
Applies a texture.
EntityTexture ( entity,texture[,frame][,index] )
Parameters
- entity
- the entity's handle.
- texture
- the texture's handle, from LoadTexture.
- frame (optional)
- which frame, for an animated texture.
- index (optional)
- the texture layer, from 0 to 7. Only layer 0 is drawn at the moment.
Description
Puts a texture on an entity, stretched over its surfaces as the texture positions of its points say. On a model loaded from a .glb, .gltf or .fbx file, it goes on every mesh of the model, which is an easy way to give a character a different skin; EntityColor, EntityAlpha, EntityFX and EntityBlend work on the whole model in the same way.
