Three.js 实现液体铺展效果
摘要
作者为日本美妆品牌的粉底液项目开发液体铺展效果,用流体仿真速度场驱动高度图记录液体厚度,再据高度图算法线并以 Matcap 渲染,隆起效果全在片元着色器完成,无需变形几何体。
原文片段
Spreading Liquid with Three.js Hacker News 212 points · 28 comments https://news.ycombinator.com/item?id=50341576
Spreading Liquid with Three.js Hacker News 212 points · 28 comments https://news.ycombinator.com/item?id=50341576