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

Merge minor lighting improvements from 1.39 #1763

Conversation

ashwinbhat
Copy link
Contributor

Migrate a few improvements from 1.39_dev to main

  • Add environment light intensity in GLSL
  • Remove 'baked' suffix from TextureBaker names

ashwinbhat and others added 3 commits April 3, 2024 11:26
Introduce a new uniform (u_envLightIntensity) that allows applications to control the light intensity directly in generated shaders. The uniform is a linear multiplier on environment lights. Applications can control the value of the uniform as needed.
…ion#1744)

The texturebaker appended a "_baked" token suffix to the generated material names that changed material name. Some pipelines get impacted by this rename, since the original material name is lost. Removing the suffix to retain original material name.
…ation#1750)

This change moves the new environment light intensity uniforms into their referencing GLSL files, addressing shader compilation errors when GenOptions::hwDirectionalAlbedoMethod is set to DIRECTIONAL_ALBEDO_TABLE or DIRECTIONAL_ALBEDO_MONTE_CARLO by the client.

Additionally, the change moves the environment light intensity option from the UI to the command line of the viewer, since isolated adjustments of the indirect lighting term are an unintuitive rendering control for most users.
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks @ashwinbhat!

@jstone-lucasfilm jstone-lucasfilm changed the title Migrate minor 1.39_dev improvements Merge minor lighting improvements from 1.39 Apr 4, 2024
@jstone-lucasfilm jstone-lucasfilm merged commit e2ef60a into AcademySoftwareFoundation:main Apr 4, 2024
31 checks passed
@ashwinbhat ashwinbhat deleted the bhata/minor_1.39_updates branch April 4, 2024 22:46
ehlenl pushed a commit to ehlenl/MaterialX that referenced this pull request Apr 12, 2024
…n#1763)

- Add environment light intensity in GLSL (AcademySoftwareFoundation#1737)
- Remove 'baked' suffix from TextureBaker names (AcademySoftwareFoundation#1744)
- Move light uniforms into referencing GLSL files (AcademySoftwareFoundation#1750)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants