git-svn-id: svn://db.shs.com.ru/libs@68 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-12-10 14:42:56 +00:00
parent 30ea938f38
commit 8f0c371a96
15 changed files with 221 additions and 26 deletions

View File

@@ -0,0 +1,12 @@
#version 150
uniform sampler2D t0, ts;
void main(void) {
ivec2 tc = ivec2(gl_FragCoord.xy);
vec4 v0 = texelFetch(t0, tc, 0), vs = texelFetch(ts, tc, 0);
float rad;
float coeff = modf(v0.a, rad);
qgl_FragData[0].rgb = mix(vs.rgb, v0.rgb, coeff);
//qgl_FragData[0].rgb = vec3(v0.rgb);
}