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. Allows to blend textures of Lightmapped_4WayBlend. Requires the VERTEX_SPECULAR flag to be set in the C++ code of a shader.

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.