Skip to main content

LiquidPouringMaterialCreator

A class in Root.Township, Alta.Liquid.

Makes the material for a pouring liquid stream from the liquid's visual data.

Constructors​

MemberWhat it is
LiquidPouringMaterialCreator()Creates a LiquidPouringMaterialCreator with default values.

Fields​

3 private and internal fields
MemberWhat it is
private FloatMaterialProperty glossinessThe _Glossiness shader property.
private ColorMaterialProperty liquidColorBacking field for LiquidColor.
private FloatMaterialProperty transparencyThe _Transparency shader property.

Properties​

MemberWhat 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​

MemberWhat 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: