Dev uses RGBA 4 channels to store 4 depths for a fluid rendering trick
Michael_Moroz_ · x · 2026-09-24
A developer shares a rendering trick for an upcoming fluid simulation plugin: use minimum blending to write four depth values into the screen's four color channels (nearest front/back surface, farthest front/back surface, achieving min and max by inverting values), then render the liquid with ZTest Off to approximate visible liquid surfaces. Shadow implementation still needs work; a nicer demo world and the plugin are planned for release.
More from coding & agent
- Why AI-made dev tools beat one-shot game generation: freedom of process — eschadiol · 2026-09-24
- RealSense VP on AgenticROS: Letting AI Agents Directly Control Physical Robots — chrismatthieu · 2026-09-24
- AWS API Gateway's Hard 10MB Upload Limit and the Presigned URL Fix — _jaydeepkarale · 2026-09-24
- Open-source Pragma gives coding agents a terminal-first workspace with Git worktrees — tech_w0rld · 2026-09-24
- Dev builds dense task annotation system with GPT-6 Astra, ships it as an LLM skill — chris_j_paxton · 2026-09-24
- Jev-as-a-Judge: hybrid agent eval flow escalates low-confidence calls to frontier models — omarsar0 · 2026-09-24