Garry's Mod Wiki

Revision Difference

IMaterial#565288

<type name="IMaterial" category="classfunc" is="class"> <summary>A Material object. It represents a game material, similarly to how a .vmt file does. ⤶ It can be created with <page>Global.Material</page> or <page>Global.CreateMaterial</page>.</summary>⤶ <summary>A Material object. It represents a game material, similarly to how a `.vmt` file does, which are in fact loaded into an **IMaterial** object. ⤶ In most cases the game works with materials as far as file paths go. Materials then point to different <page>ITexture</page>s (`.vtf` files) they might be using. ⤶ They are not the same and cannot be interchanged.⤶ ⤶ A material object can be created with <page>Global.Material</page> or <page>Global.CreateMaterial</page>.</summary>⤶ </type>