SetObjectMeshShader

Description

Sets the shader used to draw this mesh, the shader must have been loaded with LoadShader. A shader is like a script sent to the GPU to tell it how to combine the polygon and texture data to display it on screen. By default meshes are assigned an internal shader that will handle lighting and texturing. If you use a shader ID of 0 the mesh is assigned the internal shader. Mesh indices are in the range 1 to GetObjectNumMeshes

Definition

SetObjectMeshShader( objID, meshIndex, shaderID )

Parameters