Skip to content
KANA|東京AI映像· @KanaWorks_AI · X·· 3 d agoAI score49

three.js uses 32 thin shells to achieve a mossy 3D effect

Editorial summary

This tweet demonstrates that in three.js r187/WebGL2, InstancedMesh is used to stack 32 layers of thin shells outward along the normals of a stone surface to represent moss, rather than modeling individual leaves one by one; when viewed from the side, the leaf tips can also extend beyond the rock's edges. The author also compares the effects of 4, 8, 16, and 32 layers and recommends choosing the layer count based on the actual camera distance; the assets come from Poly Haven (CC0).

Source: KANA|東京AI映像 · x.com