Skip to main content

LiquidSurfaceMaterialCreator

A class in Root.Township, Alta.Liquid.

Makes the liquid surface material from a liquid's visual data: colours, rim, fresnel, foam, waves and refraction. Shared through CookingLiquidVisual.MaterialCreator.

Constructors​

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

Fields​

21 private and internal fields
MemberWhat it is
private FloatMaterialProperty depthThe _Depth shader property.
private ColorMaterialProperty fresnelColorThe _FresnelColor shader property.
private FloatMaterialProperty fresnelExponentThe _Fresnelexponent shader property.
private FloatMaterialProperty glossinessThe _Glossiness shader property.
private ColorMaterialProperty liquidColorBacking field for LiquidColor.
private ColorMaterialProperty liquidDepthColorThe _WaterColor shader property, the deep colour.
private ColorMaterialProperty lodColorBacking field for LODColor.
private FloatMaterialProperty refractionAmountThe _RefractionAmount shader property.
private ColorMaterialProperty rimColorThe _RimColor shader property.
private FloatMaterialProperty rimFalloffThe _Rimfalloff shader property.
private FloatMaterialProperty rimSizeThe _RimSize shader property.
private FloatMaterialProperty rimTilingThe _Rimtiling shader property.
private FloatMaterialProperty stencilNumberBacking field for StencilNumber.
private FloatMaterialProperty surfaceHighlightThe _FoamOpacity shader property.
private ColorMaterialProperty surfaceHighlightColorThe _FoamColor shader property.
private FloatMaterialProperty surfaceHighlightSizeThe _FoamSize shader property.
private FloatMaterialProperty surfaceHighlightTilingThe _FoamTiling shader property.
private FloatMaterialProperty tilingThe _Worldspacetiling shader property.
private FloatMaterialProperty transparencyThe _Transparency shader property.
private FloatMaterialProperty waveSpeedBacking field for WaveSpeed.
private FloatMaterialProperty waveStrengthBacking field for WaveStrength.

Properties​

MemberWhat it is
ColorMaterialProperty LiquidColor { get; }The _WaterShallowColor shader property.
ColorMaterialProperty LODColor { get; }The _Color shader property, set to the tinted liquid colour per renderer.
FloatMaterialProperty StencilNumber { get; }The _Stencil shader property, set by LiquidStencilShaderController.
FloatMaterialProperty WaveSpeed { get; }The _Wavesspeed shader property, changed with temperature when cooking.
FloatMaterialProperty WaveStrength { get; }The _WaveHeight shader property, changed with temperature when cooking.

Methods​

MemberWhat it is
override Material CreateMaterial(LiquidVisualData settings, Material materialTemplate)Copies the template and sets every surface property from the liquid visual except stencil and LOD colour.

Used in​

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