Commit f611f6d
authored
Align
While investigating render differences between GLSL and MSL in #2697 I noticed the dielectric transmission case wasn't matching. After a little investigation it appears that in the MSL render module we're missing setting `HW::REFRACTION_TWO_SIDED `. Which causes a different path to be taken through the shader code [here](https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/libraries/pbrlib/genglsl/lib/mx_transmission_refract.glsl#L9).
If more differences appear like this, it may be worth investigating a `MaterialXRenderHW` module to encapsulate the common code.REFRACTION_TWO_SIDED in GLSL and MSL rendering (#2703)1 parent 14abb7a commit f611f6d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| 744 | + | |
744 | 745 | | |
745 | 746 | | |
746 | 747 | | |
| |||
0 commit comments