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

EMSUSD-612 - Add support for MaterialX 1.38.8 #3323

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

JGamache-autodesk
Copy link
Collaborator

Required lighting changes since some function disappeared. Required updated unit test due to improved blending of the triplanar projection node.

Required lighting changes since some function disappeared.
Required updated unit test due to improved blending of the triplanar
projection node.
vec3 comp = mx_ggx_energy_compensation(NdotV, avgAlpha, F);
vec3 Li = mix(g_specularI, g_diffuseI, avgAlpha);
return Li * F * G * comp;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a backup of the file one level above this and will work with MaterialX 1.38.4 to 1.38.7.

{
return vec3(0);
return vec3(0.0);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_none.glsl from MaterialX.

float phongExp = mayaRoughnessToPhongExp(sqrt(avgAlpha));
vec3 Li = mayaGetSpecularEnvironment(N, V, phongExp);

return Li * F * G * comp;
return Li * FG;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_prefilter.glsl from MaterialX and adapted it for Maya lighting.

vec3 Y = normalize(cross(N, X));
X = cross(Y, N);
X = normalize(X - dot(X, N) * N);
vec3 Y = cross(N, X);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_fis.glsl from MaterialX and adapted it for Maya lighting.

Copy link
Collaborator

@vlasovi vlasovi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 12, 2023
@JGamache-autodesk
Copy link
Collaborator Author

@seando-adsk Ready for merge.

@seando-adsk seando-adsk merged commit 28fa170 into dev Sep 13, 2023
@seando-adsk seando-adsk deleted the gamaj/EMSUSD-612/support_materialx_1_38_8 branch September 13, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants