Skip to content

Ensure splatDefines ShaderChunk is ready when using Readback before SparkRenderer - #240

Merged
dmarcos merged 1 commit into
sparkjsdev:mainfrom
mrxz:readback-shader-chunk
Dec 15, 2025
Merged

Ensure splatDefines ShaderChunk is ready when using Readback before SparkRenderer#240
dmarcos merged 1 commit into
sparkjsdev:mainfrom
mrxz:readback-shader-chunk

Conversation

@mrxz

@mrxz mrxz commented Dec 15, 2025

Copy link
Copy Markdown
Collaborator

Fixes #228

Readback depends on the splatDefines shader chunk, but this is only initialized by the SparkRenderer. This PR ensures that whenever a shader (splat or compute) is referenced, it goes through getShaders which ensures the splatDefines shader chunk is present.

@dmarcos

dmarcos commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Thanks!

@dmarcos
dmarcos merged commit d6d5e7e into sparkjsdev:main Dec 15, 2025
2 checks passed
asundqui added a commit that referenced this pull request Apr 9, 2026
- 296eaee: Copy originToWorld values instead of holding a reference in SplatAccumulator (#191)
- 1ecabe0: Interactive ripples effect (#194)
- 589b6bc: Fix build_rust_wasm.sh script (correct shebang, don't require rustup) (#197)
- 018a3ed: (already merged) Support logarithmic depth buffer (#199)
- 8f90fe0: Fix reference counting for SplatAccumulator during updates (#200)
- 18a33cb: portal effect (#203)
- ad3a9bd: Fix ref counting and originToWorld in SparkViewpoint.prepare (#207)
- 0d9f7bf: fix twister & rain effects (#211)
- c9c488c: add greyscale painting and add i/o (#217)
- 937262b: Interactive deform effect with bounce (#223)
- 196721e: Add Demo Splat Dissolve Effects (#218)
- 752cfaa: fix: resolve webpack/Next.js WASM data URL compatibility issue (#95) (#231)
- 558a9a9: refactor: use magic-string for proper source maps in WASM fix (#234)
- 237b181: Rename single character variable
- fa71609: Add three as peerdependency (fix #238)
- d6d5e7e: Ensure splatDefines ShaderChunk is ready when using Readback before SparkRenderer (#240)
- 10a7541: add undo brush to splat painter example (#241)
- a573987: Dispose of spherical harmonics arrays and packedArray in PackedSplats (#239)
- dec8c4e: Add reference to Spark 2.0 preview in README
- 1a8239b: Add Spark 2.0 example links to README
dmarcos pushed a commit that referenced this pull request Apr 14, 2026
- 296eaee: Copy originToWorld values instead of holding a reference in SplatAccumulator (#191)
- 1ecabe0: Interactive ripples effect (#194)
- 589b6bc: Fix build_rust_wasm.sh script (correct shebang, don't require rustup) (#197)
- 018a3ed: (already merged) Support logarithmic depth buffer (#199)
- 8f90fe0: Fix reference counting for SplatAccumulator during updates (#200)
- 18a33cb: portal effect (#203)
- ad3a9bd: Fix ref counting and originToWorld in SparkViewpoint.prepare (#207)
- 0d9f7bf: fix twister & rain effects (#211)
- c9c488c: add greyscale painting and add i/o (#217)
- 937262b: Interactive deform effect with bounce (#223)
- 196721e: Add Demo Splat Dissolve Effects (#218)
- 752cfaa: fix: resolve webpack/Next.js WASM data URL compatibility issue (#95) (#231)
- 558a9a9: refactor: use magic-string for proper source maps in WASM fix (#234)
- 237b181: Rename single character variable
- fa71609: Add three as peerdependency (fix #238)
- d6d5e7e: Ensure splatDefines ShaderChunk is ready when using Readback before SparkRenderer (#240)
- 10a7541: add undo brush to splat painter example (#241)
- a573987: Dispose of spherical harmonics arrays and packedArray in PackedSplats (#239)
- dec8c4e: Add reference to Spark 2.0 preview in README
- 1a8239b: Add Spark 2.0 example links to README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SparkRenderer must be Initialized before using Readback.

2 participants