EngineRemoveShaderFromWorldTexture

From Multi Theft Auto: Wiki
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