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

Stacking texture modules ignores texture alpha. #355

Open
micha2it opened this issue Nov 15, 2022 · 1 comment
Open

Stacking texture modules ignores texture alpha. #355

micha2it opened this issue Nov 15, 2022 · 1 comment

Comments

@micha2it
Copy link

micha2it commented Nov 15, 2022

Having material that takes a grout texture and a brick texture, where brick texture has alpha, so grout texture can be seen through it. Current behaviour ignores multiple textures and just renders alpha as white for the topmost texture.

Code:
Screenshot 2022-11-15 at 14 04 11

Result (expected to see grout texture through space between bricks):
Screenshot 2022-11-15 at 14 04 36

Grout texture:
voeg

Brick texture:
brick

@micha2it micha2it changed the title Stacking texture modules ignores tetxure alpha. Stacking texture modules ignores texture alpha. Nov 15, 2022
@hmans
Copy link
Owner

hmans commented Nov 16, 2022

At the moment, the second Texture module will overwrite the color of the first. The way to do this is to put the brick texture into its own layer, and give that layer the correct blend mode. This functionality is WIP (only a few blend modes are currently implemented) and, just like most of the rest of Material Composer, undocumented. I will try to set up a codesandbox with an example soon (I'm playing catch-up with these tasks at the moment, and would like to ask you for a little more patience.)

@hmans hmans self-assigned this Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants