Garry's Mod Wiki

IMaterial:SetVector4D

  IMaterial:SetVector4D( string name, number x, number y, number z, number w )

Description

Sets the specified material vector to the specified 4 component vector, does nothing on a type mismatch.

Arguments

1 string name
The name of the material vector.
2 number x
The x component of the new vector.
3 number y
The y component of the new vector.
4 number z
The z component of the new vector.
5 number w
The w component of the new vector.