Skip to content

Commit

Permalink
Disable opacity AOV when using Northstar
Browse files Browse the repository at this point in the history
  • Loading branch information
hshakula committed Jun 11, 2020
1 parent 0c7debb commit b49e297
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,5 @@ class HdRprConfig {{
setting['values'].append('Northstar')
break
break
print(render_setting_categories)

generate_render_setting_files(args.install, args.generate_ds_files)
5 changes: 5 additions & 0 deletions pxr/imaging/plugin/hdRpr/rprApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,11 @@ class HdRprApiImpl {

if (preferences.IsDirty(HdRprConfig::DirtyAlpha) || force) {
m_isAlphaEnabled = preferences.GetEnableAlpha();
if (m_rprContextMetadata.pluginType == rpr::kPluginNorthStar) {
// Disable opacity AOV in Northstar because it's always zeroed
m_isAlphaEnabled = false;
}

UpdateColorAlpha();
}

Expand Down

0 comments on commit b49e297

Please sign in to comment.