Mesh
Description
Returns a new static mesh object.
Arguments
1 IMaterial mat = nil
The material the mesh is intended to be rendered with. It's merely a hint that tells that mesh what vertex format it should use.
2 number boneWeights = 0
Number of bone weights per vertex. This value can be set to 2 to enable skinning and rendering via IMesh:DrawSkinned. This was recently added and is only available on the Dev Branch right now.
Returns
This function does not work with "WorldVertexTransition" materials, UnlitGeneric works, however VertexLitGeneric suffers shading issues as well.
Example
Draws a triangle near Vector( 0, 0, 0 ) in the map.
Garry's Mod
Rust
Steamworks
Wiki Help