Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...