Add Normal and Depth coloring modifiers and example #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created modifiers/ folder with normalColor and depthColor to start. Can be used by importing
modifiersfrom Spark and applying those to SplatMeshes.Added another examples/debug-color to show using both in an example.
The normal coloring is applied in "world space", with RGB corresponding to XYZ.
The depth coloring allows you to specify minimum and max Z depth, and logarithmically encodes depth from black to white on that scale (including boolean to reverse direction). Future PR may involve mapping these values over a color palette. @winnie1994 thanks for your example code, hopefully this depth coloring is good enough for people to use for depth conditioning etc?
Screen.Recording.2025-06-20.at.2.12.15.PM.mov