Last change
on this file since 49158 was 35579, checked in by vboxsync, 14 years ago |
scm: cleanups and adjustments
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
371 bytes
|
Line | |
---|
1 | #extension GL_ARB_texture_rectangle : enable
|
---|
2 | uniform sampler2DRect uDstTex;
|
---|
3 | uniform vec4 uDstClr;
|
---|
4 | void vboxCKeyDst(void)
|
---|
5 | {
|
---|
6 | vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[1]));
|
---|
7 | vec3 difClr = dstClr.rgb - uDstClr.rgb;
|
---|
8 | if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01)))
|
---|
9 | || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01))))
|
---|
10 | discard;
|
---|
11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.