Global/CreateMaterial

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Fixed page)
Line 1: Line 1:
{{Function
+
{{Func
| Name = CreateMaterial
+
|Name=CreateMaterial
| Namespace = [[Global]]
+
|Parent=Global
| Realm = Client
+
|Description=Creates a new material with the specified name and shader.
 +
|Realm=Client
 +
|IsClass=No
 
}}
 
}}
 
+
{{Arg
{{Syntax
+
|type=string
| Name = CreateMaterial
+
|name=name
| Description = Creates a new material with the specified name and shader.
+
|desc=The material name.
| Returns = {{Return|IMaterial|mat}}
+
}}
 
+
{{Arg
| Arg1Name = name
+
|type=string
| Arg1Type = string
+
|name=shader
| Arg1Req = true
+
|desc=The shader.
| Arg1Desc = The material name.
+
}}
 
+
{{Arg
| Arg2Name = shader
+
|type=table
| Arg2Type = string
+
|name=materialData
| Arg2Req = true
+
|desc=Key-value table that contains shader parameters and proxies.
| Arg2Desc = The shader.
+
 
+
| Arg3Name = materialData
+
| Arg3Type = table
+
| Arg3Req = true
+
| Arg3Desc = Key-value table that contains shader parameters and proxies.
+
 
}}
 
}}

Revision as of 16:16, 26 February 2013

 CreateMaterial( )

Contents

Description

Creates a new material with the specified name and shader.

Arguments

string name

The material name.

Arguments

string shader

The shader.

Arguments

table materialData

Key-value table that contains shader parameters and proxies.
Personal tools
Navigation