Difference between revisions of "DOMMaterialSpecular"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMMaterialSpecular class)
 
(Documentation for the DOMMaterialSpecular class)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
* '''Inherits class: [[DOMMaterialStandard]]'''
+
Represents a specular variant of a material based on the Unity Standard Shader
 +
 
 +
*'''Inherits class: [[DOMMaterialStandard]]'''
 +
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMMaterialSpecular Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 +
{{#ifexist:DOMMaterialSpecular Remarks|{{:DOMMaterialSpecular Remarks}}|}}
 +
 
 
===Properties===
 
===Properties===
 +
:{{CSharp|float Glossiness {get; set;} }}
 +
::
 +
::The glossiness (shininess) of the material
 +
 +
:{{CSharp|float GlossMapScale {get; set;} }}
 +
::
 +
::A value indicating how metalic the material should appear
 +
 
:{{CSharp|Color32 SpecColor {get; set;} }}
 
:{{CSharp|Color32 SpecColor {get; set;} }}
 +
::
 +
::The specular color
  
 
:{{CSharp|ResourceValue SpecGlossMap {get; set;} }}
 
:{{CSharp|ResourceValue SpecGlossMap {get; set;} }}
 +
::
 +
::A JPG or PNG resource that makes up the Specular Gloss Map
 +
 +
===Constructors===
 +
:{{CSharp|DOMMaterialSpecular()}}
 +
::
 +
::Constructs a new DOMMaterialSpecular with default settings
 +
 +
:{{CSharp|DOMMaterialSpecular(DOMObject[] children)}}
 +
::
 +
::Constructs a new DOMMaterialSpecular, adding children at the same time
 +
 +
:{{CSharp|DOMMaterialSpecular(string title, DOMObject[] children)}}
 +
::
 +
::Constructs a new DOMMaterialSpecular, setting a title and adding children at the same time
  
===Methods===
+
__NOTOC____NOEDITSECTION__

Latest revision as of 17:36, 19 September 2018

Represents a specular variant of a material based on the Unity Standard Shader

Remarks [edit]

Properties

float Glossiness {get; set;}
The glossiness (shininess) of the material
float GlossMapScale {get; set;}
A value indicating how metalic the material should appear
Color32 SpecColor {get; set;}
The specular color
ResourceValue SpecGlossMap {get; set;}
A JPG or PNG resource that makes up the Specular Gloss Map

Constructors

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