Skip to content

Commit

Permalink
Add missing volumetric parameters to MDL surfacematerial (#1200)
Browse files Browse the repository at this point in the history
This change list adds a missing transfer of volumetric parameters from surfaceshader node to material node in MDL implementation of surfacematerial.
  • Loading branch information
niklasharrysson authored Jan 18, 2023
1 parent eab70e5 commit e277b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/MaterialXGenMdl/mdl/materialx/stdlib.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export material mx_surfacematerial(
cutout_opacity: mxp_surfaceshader.geometry.cutout_opacity,
displacement : mxp_displacement,
normal: mxp_surfaceshader.geometry.normal
)
),
ior: mxp_surfaceshader.ior,
volume: mxp_surfaceshader.volume
);

export material mx_surface_unlit(
Expand Down

0 comments on commit e277b1e

Please sign in to comment.