Skip to content

Commit

Permalink
Options for linear color space only available from 5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguzhu committed May 23, 2018
1 parent 3f48764 commit e00d539
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Resources/Shaders/FairyGUI-BMFont.shader
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Shader "FairyGUI/BMFont"
{
v2f o;
o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 500)
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 540)
o.color.rgb = GammaToLinearSpace(v.color.rgb);
o.color.a = v.color.a;
#else
Expand Down
2 changes: 1 addition & 1 deletion Source/Resources/Shaders/FairyGUI-Image.shader
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Shader "FairyGUI/Image"
v2f o;
o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
o.texcoord = v.texcoord;
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 500)
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 540)
o.color.rgb = GammaToLinearSpace(v.color.rgb);
o.color.a = v.color.a;
#else
Expand Down
2 changes: 1 addition & 1 deletion Source/Resources/Shaders/FairyGUI-Text-Brighter.shader
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Shader "FairyGUI/Text Brighter"
{
v2f o;
o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 500)
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 540)
o.color.rgb = GammaToLinearSpace(v.color.rgb);
o.color.a = v.color.a;
#else
Expand Down
2 changes: 1 addition & 1 deletion Source/Resources/Shaders/FairyGUI-Text.shader
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Shader "FairyGUI/Text"
{
v2f o;
o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 500)
#if !defined(UNITY_COLORSPACE_GAMMA) && (UNITY_VERSION >= 540)
o.color.rgb = GammaToLinearSpace(v.color.rgb);
o.color.a = v.color.a;
#else
Expand Down

0 comments on commit e00d539

Please sign in to comment.