| uniform lowp float u_device_pixel_ratio; | |
| varying vec2 v_width2; | |
| varying vec2 v_normal; | |
| varying float v_gamma_scale; | |
| void main() { | |
| // Calculate the distance of the pixel from the line in pixels. | |
| float dist = length(v_normal) * v_width2.s; | |
| // Calculate the antialiasing fade factor. This is either when fading in | |
| // the line in case of an offset line (v_width2.t) or when fading out | |
| // (v_width2.s) | |
| float blur2 = (blur + 1.0 / u_device_pixel_ratio) * v_gamma_scale; | |
| float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0); | |
| gl_FragColor = color * (alpha * opacity); | |
| gl_FragColor = vec4(1.0); | |
| } | |
Xet Storage Details
- Size:
- 968 Bytes
- Xet hash:
- 086fe1796373bcda95cddd43ca87a54ee6da7f326ce1c81ddc5f64434ae1b697
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.