Garry's Mod Wiki

IMaterial:SetShader

  IMaterial:SetShader( string shaderName )

Description

We advise against using this. It may be changed or removed in a future update. This function does nothing

The functionality of this function was removed due to the amount of crashes it caused.

Arguments

1 string shaderName
Name of the shader