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

Commit e549f26

Browse files
committed
Merge remote-tracking branch 'refs/remotes/Unity-Technologies/master'
2 parents 0b104a6 + ed01da3 commit e549f26

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

PostProcessing/Editor/Models/BuiltinDebugViewsEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public override void OnInspectorGUI()
7070

7171
EditorGUILayout.LabelField("Motion Vectors (overlay)", EditorStyles.boldLabel);
7272
EditorGUI.indentLevel++;
73+
74+
if (m_MotionVectors.motionImageOpacity.floatValue > 0f)
75+
EditorGUILayout.HelpBox("Please keep opacity to 0 if you're subject to motion sickness.", MessageType.Warning);
76+
7377
EditorGUILayout.PropertyField(m_MotionVectors.motionImageOpacity, EditorGUIHelper.GetContent("Opacity"));
7478
EditorGUILayout.PropertyField(m_MotionVectors.motionImageAmplitude, EditorGUIHelper.GetContent("Amplitude"));
7579
EditorGUI.indentLevel--;

PostProcessing/Resources/Shaders/BuiltinDebugViews.shader

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,16 @@ Shader "Hidden/Post FX/Builtin Debug Views"
236236

237237
#pragma vertex VertDefault
238238
#pragma fragment FragMovecsImaging
239+
#pragma multi_compile __ UNITY_COLORSPACE_GAMMA
239240

240241
ENDCG
241242
}
242243

243244
// (4) - Motion vectors - Arrows
244245
Pass
245246
{
247+
Blend SrcAlpha OneMinusSrcAlpha
248+
246249
CGPROGRAM
247250

248251
#pragma vertex VertArrows

PostProcessing/Runtime/Models/BuiltinDebugViewsModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static MotionVectorsSettings defaultSettings
5252
{
5353
sourceOpacity = 1f,
5454

55-
motionImageOpacity = 0.9f,
55+
motionImageOpacity = 0f,
5656
motionImageAmplitude = 16f,
5757

5858
motionVectorsOpacity = 1f,

0 commit comments

Comments
 (0)