EngineRemoveShaderFromWorldTexture

From Multi Theft Auto: Wiki
Revision as of 18:45, 22 June 2011 by Ccw (talk | contribs) (Created page with "{{Client function}} __NOTOC__ {{New feature|3.0110|1.1| Only available in 1.1 }} This function removes a shader from one texture of a model. ==Syntax== <syntaxhighlight lang="lua"> bool e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Only available in 1.1 This function removes a shader from one texture of a model.

Syntax

bool engineRemoveShaderFromModel ( element shader, int modelID, string textureName )

Required Arguments

  • shader: The shader which is to be removed
  • modelID: The model id to find the texture
  • textureName : The name of the texture in the model to remove the shader from

Returns

Returns true if the shader was successfully removed from the model, false otherwise.

Example

This example will remove a previously created shader from the "des_logwall" texture of model 11490

engineRemoveShaderFromModel( myShader, 11490, "des_logwall" )

See Also