Surface.Rubber
Rubber(float, float, ShadowCastingMode, bool)
Create a new, soft rubber surface.
Remarks
Uses the Standard lighting model.
Declaration
public static Surface Rubber(float smoothness = 0.4F, 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 mostly matte, non-metallic effect. |
Rubber(Color, float, float, ShadowCastingMode, bool)
Create a new, soft rubber surface with a given specular reflection color.
Remarks
Uses the StandardSpecular lighting model.
Declaration
public static Surface Rubber(Color reflectionColor, float smoothness = 0.4F, 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 mostly matte, non-metallic effect. |