Skip to main content

BoilingParticlesMaterialCreator

A class in Root.Township, Alta.Liquid.

Makes boiling particle materials for a liquid, setting its colour and glossiness on a copy of the template.

Constructors​

MemberWhat it is
BoilingParticlesMaterialCreator()Creates a BoilingParticlesMaterialCreator 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 transparencyBacking field for Transparency.

Properties​

MemberWhat it is
ColorMaterialProperty LiquidColor { get; }The _WaterColor shader property.
FloatMaterialProperty Transparency { get; }The _Transparency shader property, set per renderer through a property block.

Methods​

MemberWhat it is
override Material CreateMaterial(LiquidVisualData settings, Material materialTemplate)Copies the template and sets the liquid colour and glossiness on it.

Used in​

Members of other types that take, return or hold a BoilingParticlesMaterialCreator: