mesh.Color
From GMod Wiki
| Function | |
| Syntax |
mesh.Color( Number Red, Number Green, Number Blue, Number Alpha ) Where is this used? |
| Description: | |
| Defines the color and alpha of the current vertex. | |
| Returns: | nil |
| Part of Library: | mesh |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Mesh.Color]Mesh.Color [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You can only specify colors on a vertex by vertex basis if the material that you are rendering with uses the UnlitGeneric shader.
- The material must also have the "$vertexcolor 1" flag to be capable of having colors assigned to vertices
- In order to specify the alpha for a vertex, the material must have the "$vertexalpha 1" flag.