THREE.JS / FOUNDATIONS 55
The floaters push back.
A TSL struct stores position and velocity per instance. A compute kernel samples the living surface, then the vertex stage renders the same data.
Initializing structured instances—
Preparing the height field and per-floater storage.
GPU struct + water coupling controls
- path
- —
- grid
- —
- storage
- —
- struct
- —
- compute passes
- —
- draw calls
- —
- triangles
- —
Structured compute initialization failed.
The GPU struct simulation could not initialize.
Click and drag across the pool to disturb the surface. Each floater samples a clamped height-field cell, follows the normal-driven push, and bounces inside the pool bounds.
LAB 55 / STRUCTURED COMPUTE