Skip to content

Commit

Permalink
Merge pull request prime31#8 from modohash/master
Browse files Browse the repository at this point in the history
Fixing errors in shaders with half2 type declarations
  • Loading branch information
prime31 committed Feb 9, 2016
2 parents c435b75 + 4c6cc1b commit 9dd7db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/TransitionKit/transitions/shaders/Doorway.shader
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ fixed4 frag( v2f_img i ) : COLOR
if( _Direction == 1 )
_Progress = _Progress * -1.0;

half2 pfr = half2( -1.0 );
half2 pto = half2( -1.0 );
half2 pfr = half2( -1.0, -1.0 );
half2 pto = half2( -1.0, -1.0 );

float middleSlit = 2.0 * abs( i.uv.x - 0.5 ) - _Progress;
if( middleSlit > 0.0 )
Expand Down
2 changes: 1 addition & 1 deletion Assets/TransitionKit/transitions/shaders/Ripple.shader
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ uniform float _Speed;

fixed4 frag( v2f_img i ) : COLOR
{
half2 dir = i.uv - half2( 0.5 );
half2 dir = i.uv - half2( 0.5, 0.5 );
float dist = length( dir );
half2 offset = dir * ( sin( _Time.x * dist * _Amplitude - _Progress * _Speed ) + 0.5 ) / 30.0;

Expand Down

0 comments on commit 9dd7db9

Please sign in to comment.