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

consider texture layers that could be composited together for things like color masking #197

Open
engineerOfLies opened this issue May 21, 2024 · 0 comments

Comments

@engineerOfLies
Copy link
Owner

instead of checking the color of a fragment, and then swapping it, which is error prone due to color blending:

instead render to different images that are transparent
Have separate color mods per layer.
and then get the base color from sampling the different layers
basecolor *= baseColorMod;
for i = 0;i < layers;i++
baseColor = basecolor *(1-layerColor[i].w) + (layerColor[i].xyz * layerColor[i].w)

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

No branches or pull requests

1 participant