LiquidPouringMaterialCreator
A class in Root.Township, Alta.Liquid.
Makes the material for a pouring liquid stream from the liquid's visual data.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
MaterialCreator<LiquidVisualData>
Constructors
| Member | What it is |
|---|---|
LiquidPouringMaterialCreator() | Creates a LiquidPouringMaterialCreator with default values. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private FloatMaterialProperty glossiness | The _Glossiness shader property. |
private ColorMaterialProperty liquidColor | Backing field for LiquidColor. |
private FloatMaterialProperty transparency | The _Transparency shader property. |
Properties
| Member | What it is |
|---|---|
ColorMaterialProperty BaseColor { get; } | The _Color shader property, set to the tinted liquid colour per renderer. |
ColorMaterialProperty LiquidColor { get; } | The _WaterColor shader property. |
Methods
| Member | What it is |
|---|---|
override Material CreateMaterial(LiquidVisualData settings, Material materialTemplate) | Copies the template and sets the liquid colour, transparency and glossiness on it. |
Used in
Members of other types that take, return or hold a LiquidPouringMaterialCreator: