Garry's Mod Wiki

Revision Difference

mesh.Specular#565399

<function name="Specular" parent="mesh" type="libraryfunc"> <description> Sets the specular map values. ⤶ There is no known use case for this function.Sets the specular map values. This is `COLOR1` semantic of Vertex Shader. <note>This doesn't currently work, even though `COLOR0` can be successfully passed to the Vertex Shader using <page>mesh.Color</page>, unlike `COLOR1`, ​​using this function.</note>⤶ </description> <realm>Client</realm> <args> <arg name="r" type="number">The red channel multiplier of the specular map.</arg> <arg name="g" type="number">The green channel multiplier of the specular map.</arg> <arg name="b" type="number">The blue channel multiplier of the specular map.</arg> <arg name="a" type="number">The alpha channel multiplier of the specular map.</arg> </args> </function>