BottleLiquidMaterialCreator
A class in Root.Township, Alta.Liquid.
Makes the liquid material for bottled liquid (BottledLiquid), with properties for the liquid's colour and fill plane.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
MaterialCreator<LiquidVisualData>
Constructors
| Member | What it is |
|---|---|
BottleLiquidMaterialCreator() | Creates a BottleLiquidMaterialCreator with default values. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private Vector3MaterialProperty anchor | Backing field for Anchor. |
private ColorMaterialProperty liquidColor | Backing field for LiquidColor. |
private Vector3MaterialProperty point | Backing field for Point. |
Properties
| Member | What it is |
|---|---|
Vector3MaterialProperty Anchor { get; } | The _Anchor shader property, set to the bottle's up direction. |
ColorMaterialProperty LiquidColor { get; } | The _Color shader property. |
Vector3MaterialProperty Point { get; } | The _Point shader property, set to up times the fill level. |
Methods
| Member | What it is |
|---|---|
override Material CreateMaterial(LiquidVisualData settings, Material materialTemplate) | Copies the template and sets the liquid colour on it. |
Used in
Members of other types that take, return or hold a BottleLiquidMaterialCreator: