Surface.Glossy
Glossy(float, float, ShadowCastingMode, bool)
Create a new, glossy surface.
Remarks
Uses the Standard lighting model.
Declaration
public static Surface Glossy(float smoothness = 1F, float metallic = 0F, ShadowCastingMode shadowCasting = ShadowCastingMode.Off, bool receiveShadows = false)
Parameters
| Type | Name | Description |
|---|---|---|
| float | smoothness | The Smoothness parameter. |
| float | metallic | The Metallic parameter. |
| ShadowCastingMode | shadowCasting | Value for ShadowCastingMode. |
| bool | receiveShadows | Value for ReceiveShadows. |
Returns
| Type | Description |
|---|---|
| Surface | A new Surface with a very glossy, non-metallic effect. |
Glossy(Color, float, float, ShadowCastingMode, bool)
Create a new, glossy surface with a given specular reflection color.
Remarks
Uses the StandardSpecular lighting model.
Declaration
public static Surface Glossy(Color reflectionColor, float smoothness = 1F, float metallic = 0F, ShadowCastingMode shadowCasting = ShadowCastingMode.Off, bool receiveShadows = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | reflectionColor | The hue of the surface's specular reflections. |
| float | smoothness | The Smoothness parameter. |
| float | metallic | The Metallic parameter. |
| ShadowCastingMode | shadowCasting | Value for ShadowCastingMode. |
| bool | receiveShadows | Value for ReceiveShadows. |
Returns
| Type | Description |
|---|---|
| Surface | A new Surface with a very glossy, non-metallic effect. |