Skip to content

Commit

Permalink
Fix hightligher for volumetric clouds (#6259)
Browse files Browse the repository at this point in the history
Also fix in case no asset is assigned in the quality settings
  • Loading branch information
adrien-de-tocqueville committed Nov 9, 2021
1 parent a65b949 commit 738dab4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public override void OnInspectorGUI()
{
EditorGUILayout.Space();
HDEditorUtils.QualitySettingsHelpBox("The current HDRP Asset does not support Volumetric Clouds.", MessageType.Error,
HDRenderPipelineUI.Expandable.VolumetricClouds, "m_RenderPipelineSettings.supportVolumetricClouds");
HDRenderPipelineUI.Expandable.Volumetric, "m_RenderPipelineSettings.supportVolumetricClouds");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ internal enum Expandable
RTRQuality = 1 << 32,
RTGIQuality = 1 << 33,
SSGIQuality = 1 << 34,
VolumetricClouds = 1 << 35,
}

enum ExpandableShadows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void OnActivate(string searchContext, VisualElement rootElement)
m_HDRPAssets.Clear();
PopulateHDRPAssetsFromQualitySettings(m_HDRPAssets);

m_SelectedHDRPAssetIndex = m_HDRPAssets.FindIndex((asset) => asset.asset == QualitySettings.renderPipeline);
m_SelectedHDRPAssetIndex = m_HDRPAssets.FindIndex((asset) => asset.asset == HDRenderPipeline.currentAsset);
m_HDRPAssetsUIList.index = m_SelectedHDRPAssetIndex;
}

Expand Down

0 comments on commit 738dab4

Please sign in to comment.