Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.8 KB

File metadata and controls

22 lines (12 loc) · 1.8 KB

Liquid material properties

Summary

Created: Jan 14 2024 by manavortex
Last documented update: Jan 14 2024 by manavortex

This page documents liquid shaders and their properties.

  • For an explanation of material properties and further links, see .

Liquid

Cyberpunk has its own liquid shader(s) such as base\materials\fillable_fluid_vertex.mt. Projecting this material onto a submesh will turn the submesh into a transparent container filled with the liquid you specified. If you flip the container on its head, the fluid will drain to the bottom and fill it up again.

To control the offsets, you need to adjust the vectors FluidBoundingBoxMax and FluidBoundingBoxMin.

It shares various properties (such as IOR, FresnelBias, BlurRadius) with the glass shader.

TintColorliquid's color as RGB (copy from e.g. mi_neokitsch_fridge_z_emissive.mi).
FillAmountfloat, e.g.0.0: Probably works in combination with the bounding box. You'll have to experiment.
FluidBoundingBoxMin
FluidBoundingBoxMax
Vectors (X, Y, Z, W) controlling the maximum distance from the container's walls. Each value is a float (decimal) speficying the axis in question - you'll simply have to play around with them (you can ignore W).

For a bottle material I've used
Max: 0.03, 0.03, 0.155
Min: -0.03, -0.03, 0.09

Find a ready-to use (black) liquid .mi file here.