blob: 16dda5947a01ae3555ce960bc113fa2f9d5dab8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// if( gcv_TexCoord.x == 10.0 && gcv_TexCoord.y == 10.0 ) {
if( gcv_TexCoord.z > 0.0 ) {
// pass-1: AA Lines
#if 1
// const float dist = sqrt( gcv_TexCoord.x*gcv_TexCoord.x + gcv_TexCoord.y*gcv_TexCoord.y ); // magnitude
const float dist = sqrt( gcv_TexCoord.y*gcv_TexCoord.y ); // magnitude
// const float a = 1.0 - smoothstep (gcv_TexCoord.y-gcv_TexCoord.z, gcv_TexCoord.y, dist);
const float r = gcv_TexCoord.x/3.0;
const float wa = gcv_TexCoord.x+r;
const float waHalf = wa/2.0;
const float a = 1.0 - smoothstep (waHalf-2.0*r, waHalf, dist);
color = vec3(0, 0, 1.0); // gcu_ColorStatic.rgb;
alpha = a;
#else
color = vec3(0, 0, 1.0);
alpha = 1.0;
#endif
} else
|