Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 95f080f

Browse files
committed
Added compute shader warning in the editor for MSVO
1 parent bf47336 commit 95f080f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PostProcessing/Editor/PostProcessLayerEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ void DoAmbientOcclusion(Camera camera)
267267
}
268268
else if (aoMode == (int)AmbientOcclusion.Mode.MSVO)
269269
{
270+
if (!SystemInfo.supportsComputeShaders)
271+
EditorGUILayout.HelpBox("Multi-scale volumetric obscurance requires compute shader support.", MessageType.Warning);
272+
270273
EditorGUILayout.PropertyField(m_MSVOIntensity);
271274
EditorGUILayout.PropertyField(m_MSVOThicknessModifier);
272275
EditorGUILayout.PropertyField(m_MSVOColor);

0 commit comments

Comments
 (0)