Liquid material properties
Last updated
Last updated
Created: Jan 14 2024 by Last documented update: Jan 14 2024 by
This page documents liquid shaders and their properties.
For an explanation of material properties and further links, see Material properties
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.
TintColor | liquid's color as RGB (copy from e.g. |
FillAmount | float, e.g. |
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.