@@ -22,7 +22,7 @@ public override bool OnGUI(SerializedProperty property, SerializedProperty overr
2222 {
2323 if ( property . propertyType != SerializedPropertyType . Vector4 )
2424 return false ;
25-
25+
2626 var value = property . vector4Value ;
2727
2828 using ( new EditorGUILayout . VerticalScope ( ) )
@@ -67,13 +67,13 @@ void DrawWheel(ref Vector4 value, bool overrideState, TrackballAttribute attr)
6767 {
6868 // Retina support
6969 float scale = EditorGUIUtility . pixelsPerPoint ;
70-
70+
7171 if ( s_Material == null )
7272 s_Material = new Material ( Shader . Find ( "Hidden/PostProcessing/Editor/Trackball" ) ) { hideFlags = HideFlags . HideAndDontSave } ;
7373
7474 // Wheel texture
7575 var oldRT = RenderTexture . active ;
76- var rt = RenderTexture . GetTemporary ( ( int ) ( size * scale ) , ( int ) ( size * scale ) , 0 , RenderTextureFormat . ARGB32 , RenderTextureReadWrite . Linear ) ;
76+ var rt = RenderTexture . GetTemporary ( ( int ) ( size * scale ) , ( int ) ( size * scale ) , 0 , RenderTextureFormat . ARGB32 , RenderTextureReadWrite . sRGB ) ;
7777 s_Material . SetFloat ( "_Offset" , offset ) ;
7878 s_Material . SetFloat ( "_DisabledState" , overrideState ? 1f : 0.5f ) ;
7979 s_Material . SetVector ( "_Resolution" , new Vector2 ( size * scale , size * scale / 2f ) ) ;
@@ -106,7 +106,7 @@ void DrawWheel(ref Vector4 value, bool overrideState, TrackballAttribute attr)
106106
107107 if ( attr . mode == TrackballAttribute . Mode . None )
108108 return ;
109-
109+
110110 // Values
111111 var displayValue = Vector3 . zero ;
112112
0 commit comments