git-svn-id: svn://db.shs.com.ru/libs@68 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
12
qglview/shaders/ssr_merge.frag
Normal file
12
qglview/shaders/ssr_merge.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user