Skip to content

Commit

Permalink
fix #145; UIHsvModifier works only on gamma-space
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jan 21, 2019
1 parent 178db32 commit f60ba8f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ void Initialize()

if (!_texture)
{
_texture = new Texture2D(_channels / 4, _instanceLimit, TextureFormat.RGBA32, false, false);
bool isLinear = QualitySettings.activeColorSpace == ColorSpace.Linear;
_texture = new Texture2D(_channels / 4, _instanceLimit, TextureFormat.RGBA32, false, isLinear);
_texture.filterMode = FilterMode.Point;
_texture.wrapMode = TextureWrapMode.Clamp;

Expand Down

0 comments on commit f60ba8f

Please sign in to comment.