projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
blit_transition.fs
1
out vec4 FragColor;
2
in vec2 aUv;
3
uniform float uT;
4
5
void main(){
6
float d = uT + distance( aUv, vec2(0.5,0.5) );
7
8
vec3 vDither = vec3( dot( vec2( 171.0, 231.0 ), gl_FragCoord.xy) );
9
float dither = fract( vDither.g / 71.0 ) - 0.5;
10
11
if( d+dither < -0.5 )
12
discard;
13
14
FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
15
}