EngineRemoveShaderFromWorldTexture: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
 

Revision as of 18:55, 20 July 2011

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