A walkthrough of building a realistic raindrop-covered window pane material in Three.JS using MeshPhysicalMaterial's transmission shader. Covers key properties including transmission, IOR, roughness maps, normal maps, and thickness maps. The author used an AI-generated gold texture repurposed as a roughness/normal map to simulate raindrop streaks, combined with a Stable Diffusion-generated dirt texture for surface grime. The post includes code snippets, texture images, and practical tips on tuning IOR and roughness together for convincing glass effects.
Sort: