Last change
on this file since 22640 was 22640, checked in by vboxsync, 16 years ago |
OSE fix
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
475 bytes
|
Line | |
---|
1 | #extension GL_ARB_texture_rectangle : enable
|
---|
2 |
|
---|
3 | uniform sampler2DRect uDstTex;
|
---|
4 | uniform vec4 uDstClr;
|
---|
5 |
|
---|
6 | vec2 ckeyDst(void)
|
---|
7 | {
|
---|
8 | vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[0]));
|
---|
9 | vec3 difClr = dstClr.rgb - uDstClr.rgb;
|
---|
10 | if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01)))
|
---|
11 | || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01))))
|
---|
12 | discard;
|
---|
13 | // /* gl_FragColor = texture2DRect(uSrcTex, vec2(gl_TexCoord[1])); */
|
---|
14 | return vec2(gl_TexCoord[1]);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.