Skip to content

Commit

Permalink
Merge pull request #3211 from dj-mcg/pr/Use_Updated_Material_HWToken
Browse files Browse the repository at this point in the history
Use the updated HW Token in MaterialX 1.38.7
  • Loading branch information
seando-adsk authored Jul 11, 2023
2 parents e4642c2 + aa8bca2 commit 369f96e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ ShaderPtr GlslFragmentGenerator::generate(
_tokenSubstitutions[ShaderGenerator::T_FILE_TRANSFORM_UV]
= (context.getOptions().fileTextureVerticalFlip ? "mx_transform_uv_vflip.glsl"
: "mx_transform_uv.glsl");
#if MX_COMBINED_VERSION <= 13806
_tokenSubstitutions[HW::T_REFRACTION_ENV] = MX_REFRACTION_SUBSTITUTION;
#endif
#else
// Renamed in 1.38.7
_tokenSubstitutions[HW::T_REFRACTION_TWO_SIDED] = MX_REFRACTION_SUBSTITUTION;
#endif // <= 13806
#endif // <= 13804

// Add all functions for node implementations
emitFunctionDefinitions(graph, context, pixelStage);
Expand Down

0 comments on commit 369f96e

Please sign in to comment.