forked from prime31/TransitionKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a new default shader that is in the transparent queue
- Loading branch information
Showing
4 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
Assets/Plugins/TransitionKit/transitions/shaders/TextureWithAlpha.shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Shader "prime[31]/Transitions/Texture With Alpha" | ||
{ | ||
Properties | ||
{ | ||
_MainTex( "Base (RGB)", 2D ) = "white" {} | ||
_Color( "Color", Color ) = ( 1.0, 1.0, 1.0, 1.0 ) | ||
} | ||
|
||
SubShader | ||
{ | ||
Tags { "RenderType" = "Transparent" "Queue" = "Transparent" } | ||
Blend SrcAlpha OneMinusSrcAlpha | ||
Lighting Off | ||
|
||
Pass | ||
{ | ||
CGPROGRAM | ||
#pragma vertex vert_img | ||
#pragma fragment frag | ||
#pragma fragmentoption ARB_precision_hint_fastest | ||
#include "UnityCG.cginc" | ||
|
||
|
||
uniform sampler2D _MainTex; | ||
uniform float _Progress; | ||
uniform fixed4 _Color; | ||
|
||
|
||
fixed4 frag( v2f_img i ):COLOR | ||
{ | ||
return tex2D( _MainTex, i.uv ) * _Color; | ||
} | ||
|
||
ENDCG | ||
} | ||
} | ||
|
||
FallBack off | ||
} |
5 changes: 5 additions & 0 deletions
5
Assets/Plugins/TransitionKit/transitions/shaders/TextureWithAlpha.shader.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.