Developer hh-hang has released spark-shadow 0.1.0, an MIT-licensed npm package that adds real-time shadows to Gaussian splats rendered with Spark.
Spark's own release notes, through the 2.4.0 release in October, do not list light-based splat shadow casting. spark-shadow works from outside the renderer, sampling shadows per Gaussian from three.js directional, spot and point lights without building a proxy mesh.
spark-shadow handles splat self-shadowing and shadows in both directions between splats and meshes. Meshes are registered with shadow.add(mesh), and a receiving mesh gets a separate transparent layer that overlays black shadows while keeping its original material and lighting. Shadow maps update on demand and are managed independently, so the package does not require renderer.shadowMap.enabled or overwrite light.shadow.map. Map size, intensity, bias, radius and the shadow camera come from the existing three.js light.
Setup is a single SparkShadow object built from the renderer, the light and an optional alphaThreshold, a shadow-caster opacity threshold that defaults to 0.35. The update method runs before each main render, and invalidate refreshes shadows after splat or mesh data changes. spark-shadow 0.1.0 targets @sparkjsdev/spark 2.4 and three.js r180 through r186.
The README lists the current limits. Alpha clipping and center sampling only approximate occlusion, so large splats, self-shadowing and translucent regions can show artifacts. Lighting already baked into a capture remains, and Spark modifiers that change splat position, scale or opacity are not reflected in shadow-caster depth, though color modifiers carry through.
A live demo places a Spark sample splat on a ground disc under a rotating torus knot and a moving directional light. SplatLight brought self-shadowing under scene lights to Gaussian splats in Blender.
spark-shadow is available now on GitHub and npm.




