Surface.PolishedMetal
PolishedMetal(float, float, ShadowCastingMode, bool)
Create a new, glossy metal surface.
Remarks
Uses the Standard lighting model.
Declaration
public static Surface PolishedMetal(float smoothness = 0.9F, float metallic = 1F, 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 glossy, metallic effect. |
PolishedMetal(Color, float, float, ShadowCastingMode, bool)
Create a new, glossy metal surface with a given specular reflection color.
Remarks
Uses the StandardSpecular lighting model.
Declaration
public static Surface PolishedMetal(Color reflectionColor, float smoothness = 0.9F, float metallic = 1F, 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 glossy, metallic effect. |