Tag

depth rendering

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 12, 2024 · Frontend Development

Creating a Realistic Rain Effect with Depth Rendering in three.js

This tutorial demonstrates how to create a realistic rain effect in three.js by generating depth maps with an orthographic camera, rendering them to a texture, and using custom shaders to position and fade raindrop meshes based on depth information.

JavaScriptShaderThree.js
0 likes · 13 min read
Creating a Realistic Rain Effect with Depth Rendering in three.js