| 1234567891011121314151617181920212223 |
- #pragma anki vertShaderBegins
- #pragma anki include "shaders/simple_vert.glsl"
- #pragma anki fragShaderBegins
- uniform sampler2D rasterImage;
- varying vec2 texCoords;
- void main()
- {
- //if( gl_FragCoord.x > 0.5 ) discard;
- gl_FragColor.rgb = texture2D( rasterImage, texCoords ).rgb;
- /*vec4 c = texture2D( rasterImage, texCoords );
- if( c.r == 0.0 && c.g == 0.0 && c.b==0.0 && c.a != 0.0 )*/
- //gl_FragColor.rgb = vec3( texture2D( rasterImage, texCoords ).a );
- //gl_FragColor.rgb = MedianFilter( rasterImage, texCoords );
- //gl_FragColor.rgb = vec3( gl_FragCoord.xy/tex_size_, 0.0 );
- //gl_FragColor.rgb = vec3( gl_FragCoord.xy*vec2( 1.0/R_W, 1.0/R_H ), 0.0 );
- //gl_FragColor.rgb = texture2D( rasterImage, gl_FragCoord.xy/textureSize(rasterImage,0) ).rgb;
- }
|