Open code-monkey opened 2 years ago
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.
Currently opacity is defined as a
float
inND_surface
. There are many use cases (stained glass) where it would be good to have opacity defined as acolor3
.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.It's easy to get a scalar value out of a color, it's not possible to get a color out of a scalar.