Skip to content

Conversation

@asundqui
Copy link
Contributor

Added an example called "GLSL Shaders" that shows how to write GLSL code inline in a SplatMesh modifier pipeline.

Has two examples: One is a direct GLSL code injection on the worldModifier to modulate color as a function of world x/y/z coordinate.

The second example injects a DynoBlock into objectModifier, and then GLSL dyno inside to show how to use other external variables as inputs, in this case a "time" uniform that is used to animate the rippling motion.

Screen.Recording.2025-06-20.at.11.31.03.AM.mov

Thoughts feedback, is this a good starting point for people to start hacking GLSL code into splats? @dmarcos does this example show a clean simple way to start writing GLSL code do you think?

@asundqui asundqui self-assigned this Jun 20, 2025
@dmarcos
Copy link
Contributor

dmarcos commented Jun 20, 2025

Thanks so much!

@dmarcos dmarcos merged commit e36b553 into sparkjsdev:main Jun 20, 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.

3 participants