Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MDL implementation of fract #2201

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/MaterialXGenMdl/mdl/materialx/stdlib_1_6.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ export color mx_fract_color3(
anno::description("Node Group: math")
]]
{
return color(math::fract(float3(mxp_in)));
return color(math::frac(float3(mxp_in)));
}

export core::color4 mx_fract_color4(
Expand All @@ -1469,7 +1469,7 @@ export core::color4 mx_fract_color4(
anno::description("Node Group: math")
]]
{
return core::mk_color4(math::fract(core::mk_float4(mxp_in)));
return core::mk_color4(math::frac(core::mk_float4(mxp_in)));
}

export core::color4 mx_invert_color4(
Expand Down