Skip to content

Commit

Permalink
fix #99; Shader has compile errors in D3D9 or D3D11_9X(WSA)
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jul 18, 2018
1 parent 6bfc676 commit c919449
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Coffee/UIExtensions/UIEffect/Shaders/UI-Effect.shader
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ Shader "UI/Hidden/UI-Effect"
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#if !defined(SHADER_API_D3D11_9X) && !defined(SHADER_API_D3D9)
#pragma target 2.0
#else
#pragma target 3.0
#endif

#pragma multi_compile __ UNITY_UI_ALPHACLIP

Expand Down Expand Up @@ -88,7 +92,7 @@ Shader "UI/Hidden/UI-Effect"
half4 effectFactor : TEXCOORD2;
#endif
#if HUE || PIXEL
half4 extraFactor : TEXCOORD3;
half2 extraFactor : TEXCOORD3;
#endif
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ Shader "UI/Hidden/UI-EffectCapture"
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#if !defined(SHADER_API_D3D11_9X) && !defined(SHADER_API_D3D9)
#pragma target 2.0
#else
#pragma target 3.0
#endif

#pragma shader_feature __ GRAYSCALE SEPIA NEGA PIXEL MONO CUTOFF HUE
#pragma shader_feature __ ADD SUBTRACT FILL
Expand Down

0 comments on commit c919449

Please sign in to comment.