Methods
Fade
#Add a transparency layer to this shader.
public ColourShader Fade()
transparency,
Transparency layer.
combine
If true, overlay transparency is combined with existing transparency. If false, overlay transparency overrules the existing transparency.
Returns: Modified shader.
ResolveColour
#Utility function for resolving a colour with the background.
protected Color ResolveColour()
Color
colour,
Colour to resolve.
ray,
Ray associated with colour location.
stack
Object stack context.
Returns: Resolved colour.
TryParse
#Try and parse a string description.
public static bool TryParse()
description,
Textual description.
out string
message,
On failure, a description of the problem will be outputted here.
out ColourShader
shader
On success, a shader will be outputted here.
Returns: True on success, false on failure.
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | Color | ColourShader | Create a solid fill shader. | |
| implicit | string | ColourShader | Attempt to parse a shader description. | |