Skip to content

Conversation

@mrxz
Copy link
Collaborator

@mrxz mrxz commented Dec 15, 2025

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
Copy link
Contributor

dmarcos commented Dec 15, 2025

Thanks!

@dmarcos dmarcos merged commit d6d5e7e into sparkjsdev:main Dec 15, 2025
2 checks passed
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