A detailed walkthrough of building a dual-scene fluid X-ray reveal effect using Three.js with TSL (Three.js Shading Language) and WebGPU. The pipeline consists of five stages: a canvas-drawn mouse trail, a ping-pong fluid simulation using FBM noise, two instanced scenes (solid body and skeleton) rendered to separate textures,
Table of contents
Breaking Down the Render PipelineCreating the Mouse Trail CanvasTransforming the Mouse Trail into a FluidInstancing the Solid & X-Ray ScenesBuilding the Post-Processing PipelineUnderstanding the Render LoopThe Final ProductConclusionSort: