Difference between revisions of "DOMMaterialStandard"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMMaterialStandard class)
(Documentation for the DOMMaterialStandard class)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
*'''Inherits class: [[DOMMaterial]]'''
 
*'''Inherits class: [[DOMMaterial]]'''
* This is a leaf node type. This node type cannot have children.
 
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMMaterialStandard Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMMaterialStandard Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
{{#ifexist:DOMMaterialStandard Remarks|{{:DOMMaterialStandard Remarks}}|}}
 
{{#ifexist:DOMMaterialStandard Remarks|{{:DOMMaterialStandard Remarks}}|}}
Line 25: Line 24:
 
:{{CSharp|ResourceValue DetailAlbedoMap {get; set;} }}
 
:{{CSharp|ResourceValue DetailAlbedoMap {get; set;} }}
 
::
 
::
::A JPG or PNG resource that makes up the Aetail Albedo Map
+
::A JPG or PNG resource that makes up the Detail Albedo Map
  
 
:{{CSharp|ResourceValue DetailMask {get; set;} }}
 
:{{CSharp|ResourceValue DetailMask {get; set;} }}
Line 50: Line 49:
 
::
 
::
 
::The emission strength of the material
 
::The emission strength of the material
 
:{{CSharp|float Glossiness {get; set;} }}
 
::
 
::The glossiness (shininess) of the material
 
  
 
:{{CSharp|ResourceValue MainTex {get; set;} }}
 
:{{CSharp|ResourceValue MainTex {get; set;} }}
Line 69: Line 64:
 
:{{CSharp|float Parallax {get; set;} }}
 
:{{CSharp|float Parallax {get; set;} }}
 
::
 
::
::The strength of the Hight (parallax) Map
+
::The strength of the Height (parallax) Map
  
 
:{{CSharp|ResourceValue ParallaxMap {get; set;} }}
 
:{{CSharp|ResourceValue ParallaxMap {get; set;} }}
 
::
 
::
::A JPG or PNG resource that makes up the Hight (parallax) Map
+
::A JPG or PNG resource that makes up the Height (parallax) Map
  
 
:{{CSharp|RenderMode RenderingMode {get; set;} }}
 
:{{CSharp|RenderMode RenderingMode {get; set;} }}
Line 85: Line 80:
 
::Constructs a new DOMMaterialStandard with default settings
 
::Constructs a new DOMMaterialStandard with default settings
  
:{{CSharp|DOMMaterialStandard(string title)}}
+
:{{CSharp|DOMMaterialStandard(DOMObject[] children)}}
 +
::
 +
::Constructs a new DOMMaterialStandard, adding children at the same time
 +
 
 +
:{{CSharp|DOMMaterialStandard(string title, DOMObject[] children)}}
 
::
 
::
 
::Constructs a new DOMMaterialStandard, setting a title and adding children at the same time
 
::Constructs a new DOMMaterialStandard, setting a title and adding children at the same time
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Latest revision as of 17:36, 19 September 2018

Represents a material based on the Unity Standard Shader

Remarks [edit]

Properties

ResourceValue BumpMap {get; set;}
A JPG or PNG resource that makes up the Normal (bump) Map
float BumpScale {get; set;}
The normal map scale
Color32 Color {get; set;}
The main color of the material
float Cutoff {get; set;}
The albedo alpha cutoff of the material
ResourceValue DetailAlbedoMap {get; set;}
A JPG or PNG resource that makes up the Detail Albedo Map
ResourceValue DetailMask {get; set;}
A JPG or PNG resource that makes up the Detail Mask
ResourceValue DetailNormalMap {get; set;}
A JPG or PNG resource that makes up the Detail Normal Map
float DetailNormalMapScale {get; set;}
The detail normal map scale of the material
Color32 EmissionColor {get; set;}
The emission color of the material
ResourceValue EmissionMap {get; set;}
A JPG or PNG resource that makes up the Emission Map
float EmissionStrength {get; set;}
The emission strength of the material
ResourceValue MainTex {get; set;}
A JPG or PNG resource representing the Main Texture of this material
ResourceValue OcclusionMap {get; set;}
A JPG or PNG resource that makes up the Occlusion Map
float OcclusionStrength {get; set;}
The occlusion strength of the material
float Parallax {get; set;}
The strength of the Height (parallax) Map
ResourceValue ParallaxMap {get; set;}
A JPG or PNG resource that makes up the Height (parallax) Map
RenderMode RenderingMode {get; set;}
string Shader {get; set;}
MaterialUVSec UVSec {get; set;}

Constructors

DOMMaterialStandard()
Constructs a new DOMMaterialStandard with default settings
DOMMaterialStandard(DOMObject[] children)
Constructs a new DOMMaterialStandard, adding children at the same time
DOMMaterialStandard(string title, DOMObject[] children)
Constructs a new DOMMaterialStandard, setting a title and adding children at the same time