AssetStyling

References
[IoId("00000000-b5cd-4f13-976c-e0236933f184")] public readonly struct AssetStyling : IStorable

Constructors

AssetStyling

#
public AssetStyling(AssetShading shading, AssetColouring colour)
shading (AssetShading)
colour (AssetColouring)

AssetStyling

#
public AssetStyling(AssetShading shading, Gradient gradient)
shading (AssetShading)
gradient (Gradient)

AssetStyling

#
public AssetStyling(IReader reader)
reader (IReader)

Properties

Colour

#
public AssetColouring Colour { get; }
Gets the colour styling.

Default

#
public static AssetStyling Default { get; }

Gradient

#
public Gradient Gradient { get; }
Gets the colour gradient to be, in case Colour equals AssetColouring.Custom.

Shading

#
public AssetShading Shading { get; }
Gets the shading styling.

Methods

Shade

#
public void Shade(Mesh mesh, Vector3f sun)
mesh (Mesh)
sun (Vector3f)

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

ToString

#
public override string ToString()

TryParse

#
public static Result<AssetStyling> TryParse(string text)
text (string)

Convertors

OperationResultDescription
implicitAssetColouringAssetStyling
implicitAssetShadingAssetStyling