forked from blender/blender
Implement BSDF Transparent shader #36
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DagerD/blender#36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BogdanNagirniak/blender:matx-transparent-shader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose
Implement BSDF Transparent + include and shader's opacity to MatX nodetree.
Technical steps
NodeItem::Type::SurfaceOpacity
to retrieve opacity for <surface> node.Notes
Storm and RPR hydra delegates aren't working good with opacity, this has to be fixed on delegate/hydra side, therefore those changes won't be visible. Opacity can be checked in MaterialXView or MaterialXGraphEditor of the exported mtlx.
n_opacity_luminance
is redundant here:@ -103,6 +103,8 @@ std::string NodeItem::type(Type type)
return "surfaceshader";
case Type::Material:
return "material";
case Type::SurfaceOpacity:
Add the same convertion to
NodeItem::Type NodeItem::type(const std::string &type_str)