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

ND_surface should have color opacity #20

Open
code-monkey opened this issue Oct 6, 2021 · 1 comment
Open

ND_surface should have color opacity #20

code-monkey opened this issue Oct 6, 2021 · 1 comment

Comments

@code-monkey
Copy link

Currently opacity is defined as a float in ND_surface. There are many use cases (stained glass) where it would be good to have opacity defined as a color3.

There's even a documented work-around in standard_surface.mtlx to convert the incoming color to a scalar value. Full color opacity is needed to reproduce the standard surface faithfully.

    <!-- Surface construction with opacity -->                                   
    <!-- Node <surface> only supports monochromatic opacity so use the luminance of input opacity color -->
    <luminance name="opacity_luminance" type="color3">  

It's easy to get a scalar value out of a color, it's not possible to get a color out of a scalar.

@niklasharrysson
Copy link
Contributor

Hi Mark,

Thanks for reporting this! I will create an issue for this on the MaterialX github, since it's a limitation in the MaterialX spec. rather than a limitation with the Standard Surface specification. And we can continue the discussion there.

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

2 participants