Difference between revisions of "DOMMaterialMetallic"
From Virtual World Web Wiki
(Documentation for the DOMMaterialMetallic class) |
(Documentation for the DOMMaterialMetallic class) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * '''Inherits class: [[DOMMaterialStandard]]''' | + | Represents a metallic variant of a material based on the Unity Standard Shader |
+ | |||
+ | *'''Inherits class: [[DOMMaterialStandard]]''' | ||
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMMaterialMetallic Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ===Remarks <nowiki>[</nowiki>[{{fullurl:DOMMaterialMetallic Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
− | {{:DOMMaterialMetallic Remarks}} | + | {{#ifexist:DOMMaterialMetallic Remarks|{{:DOMMaterialMetallic Remarks}}|}} |
===Properties=== | ===Properties=== | ||
:{{CSharp|bool DoubleSided {get; set;} }} | :{{CSharp|bool DoubleSided {get; set;} }} | ||
+ | :: | ||
+ | ::True if a double-sided shader variant should be used | ||
− | :{{CSharp| | + | :{{CSharp|float Glossiness {get; set;} }} |
+ | :: | ||
+ | ::The glossiness (shininess) of the material | ||
+ | |||
+ | :{{CSharp|float GlossMapScale {get; set;} }} | ||
+ | :: | ||
+ | ::A value indicating how metallic the material should appear | ||
+ | |||
+ | :{{CSharp|float Metallic {get; set;} }} | ||
+ | :: | ||
+ | ::A value indicating how metalic the material should appear | ||
:{{CSharp|ResourceValue MetallicGlossMap {get; set;} }} | :{{CSharp|ResourceValue MetallicGlossMap {get; set;} }} | ||
+ | :: | ||
+ | ::A JPG or PNG resource that makes up the Metallic Gloss Map | ||
+ | |||
+ | ===Constructors=== | ||
+ | :{{CSharp|DOMMaterialMetallic()}} | ||
+ | :: | ||
+ | ::Constructs a new DOMMaterialMetallic with default settings | ||
+ | |||
+ | :{{CSharp|DOMMaterialMetallic(DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMMaterialMetallic, adding children at the same time | ||
+ | |||
+ | :{{CSharp|DOMMaterialMetallic(string title, DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMMaterialMetallic, setting a title and adding children at the same time | ||
− | |||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Latest revision as of 14:14, 18 January 2019
Represents a metallic variant of a material based on the Unity Standard Shader
- Inherits class: DOMMaterialStandard
Remarks [edit]
Properties
- bool DoubleSided {get; set;}
- True if a double-sided shader variant should be used
- float Glossiness {get; set;}
- The glossiness (shininess) of the material
- float GlossMapScale {get; set;}
- A value indicating how metallic the material should appear
- float Metallic {get; set;}
- A value indicating how metalic the material should appear
- ResourceValue MetallicGlossMap {get; set;}
- A JPG or PNG resource that makes up the Metallic Gloss Map
Constructors
- DOMMaterialMetallic()
- Constructs a new DOMMaterialMetallic with default settings
- DOMMaterialMetallic(DOMObject[] children)
- Constructs a new DOMMaterialMetallic, adding children at the same time
- DOMMaterialMetallic(string title, DOMObject[] children)
- Constructs a new DOMMaterialMetallic, setting a title and adding children at the same time