Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add DeferredInstancedColor shaders #749

Merged
merged 1 commit into from
May 15, 2024

Conversation

smlpt
Copy link
Contributor

@smlpt smlpt commented May 8, 2024

This PR adds a new fragment & vertex shader type to be used for coloring individual instances of instanced geometry.

The syntax for writing the color attribute is:

InstancedNode.Instance.instancedProperties["Color"] = { Vector4f(1f) }

The code is largely taken from this and this ParticleDemo shader in Sciview.

@smlpt smlpt added the enhancement Issue or PR discusses an enhancement label May 8, 2024
@skalarproduktraum skalarproduktraum merged commit 272682e into main May 15, 2024
6 checks passed
@skalarproduktraum skalarproduktraum deleted the instanced-material-colors branch May 15, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue or PR discusses an enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants