Skip to content

Commit

Permalink
Merge pull request #468 from Autodesk/krickw/MAYA-104223/opt_in_to_di…
Browse files Browse the repository at this point in the history
…ffuseColor_multidraw_consolidation

Opt in to diffuse color multidraw consolidation
  • Loading branch information
Krystian Ligenza authored May 27, 2020
2 parents 6f0c244 + 5a309f2 commit f34c6ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mayaUsd/render/vp2RenderDelegate/render_delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ namespace
if (TF_VERIFY(shaderMgr)) {
shader = shaderMgr->getFragmentShader(
_fallbackShaderNames[index], _structOutputName, true);
#if MAYA_API_VERSION >= 20210000
shader->setWantMultiDrawConsolidation(_diffuseColorParameterName, true);
#endif
}
}

Expand Down

0 comments on commit f34c6ed

Please sign in to comment.