Garry's Mod Wiki

mesh.Specular

  mesh.Specular( number r, number g, number b, number a )

Description

Sets the specular map values. This is COLOR1 semantic of Vertex Shader.

This doesn't currently work, even though COLOR0 can be successfully passed to the Vertex Shader using mesh.Color, unlike COLOR1, ​​using this function.

Arguments

1 number r
The red channel multiplier of the specular map.
2 number g
The green channel multiplier of the specular map.
3 number b
The blue channel multiplier of the specular map.
4 number a
The alpha channel multiplier of the specular map.