Revision Difference
IMaterial:GetShader#566110
<function name="GetShader" parent="IMaterial" type="classfunc">
<description>
Returns the name of the materials shader.
<bug issue="3256">This function does not work serverside on Linux SRCDS.</bug>
<bug issue="3256">This function does not work serverside on Linux SRCDS and always returns `shader_error`.</bug>
</description>
<realm>Shared and Menu</realm>
<rets>
<ret name="" type="string">shaderName</ret>⤶
<ret name="" type="string">Name of the currently loaded shader for this material, or `shader_error` if the material has no loaded shader.</ret>⤶
</rets>
</function>
Garry's Mod
Rust
Steamworks
Wiki Help