Skip to content

Commit

Permalink
If not present initialize HdStormRendererPlugin__domeLightTexturesMax…
Browse files Browse the repository at this point in the history
…Resolution optionVar to 1024.
  • Loading branch information
ppt-adsk committed Jan 17, 2025
1 parent 18e304b commit 969f8c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/mayaHydra/mayaPlugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ PLUGIN_EXPORT MStatus initializePlugin(MObject obj)
// For now this is required for the HdSt backend to use lights.
setEnv("USDIMAGING_ENABLE_SCENE_LIGHTS", "1");

// Set dome light textures maximum resolution default to 1024. A proper
// solution with a Hydra preferences category in the Maya
// preferences UI is preferable, but at time of writing is not in
// scope. PPT, 17-Jan-2025.
MGlobal::executeCommand("if (!`optionVar -exists HdStormRendererPlugin__domeLightTexturesMaxResolution`) { optionVar -iv HdStormRendererPlugin__domeLightTexturesMaxResolution 1024; }");

MFnPlugin plugin(obj, "Autodesk", PLUGIN_VERSION, "Any");

if (!plugin.registerCommand(
Expand Down
2 changes: 1 addition & 1 deletion lib/mayaHydra/mayaPlugin/pluginUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct MtohRendererDescription

using MtohRendererDescriptionVector = std::vector<MtohRendererDescription>;

/// Map from MtohRendererDescription::rendererName to it's a HdRenderSettingDescriptorList
/// Map from MtohRendererDescription::rendererName to its HdRenderSettingDescriptorList
using MtohRendererSettings
= std::unordered_map<pxr::TfToken, pxr::HdRenderSettingDescriptorList, pxr::TfToken::HashFunctor>;

Expand Down

0 comments on commit 969f8c0

Please sign in to comment.