> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/materials/configuring-materials/liquid-material-properties.md).

# Liquid material properties

## Summary

**Created:** Jan 14 2024 by [mana vortex](mailto:undefined)\
**Last documented update:** Jan 14 2024 by [mana vortex](mailto:undefined)

This page documents liquid shaders and their properties.

* For an **explanation** of material properties and further links, see [Material properties](/cyberpunk-2077-modding/for-mod-creators-theory/materials/configuring-materials.md)

## 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](#glass).

<table><thead><tr><th width="291"></th><th></th></tr></thead><tbody><tr><td>TintColor</td><td>liquid's color as RGB (copy from e.g. <code>mi_neokitsch_fridge_z_emissive.mi</code>).</td></tr><tr><td>FillAmount</td><td>float, e.g.<code>0.0</code>: Probably works in combination with the bounding box. You'll have to experiment.</td></tr><tr><td>FluidBoundingBoxMin<br>FluidBoundingBoxMax</td><td>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).<br><br>For a bottle material I've used<br>Max: 0.03, 0.03, 0.155<br>Min: -0.03, -0.03, 0.09</td></tr></tbody></table>

Find a ready-to use (black) liquid .mi file [here](https://mega.nz/file/yVkkjRKS#ii5dB7P1OcwLk-VIBKiU9Ou31dloSO7k1hjEryAj9Ok).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/materials/configuring-materials/liquid-material-properties.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
