Last change
on this file since 78395 was 71027, checked in by vboxsync, 7 years ago |
FE/Qt: big svn props cleanup
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
382 bytes
|
Line | |
---|
1 | /* $Id: ckeyDst2.c 71027 2018-02-15 14:33:48Z vboxsync $ */
|
---|
2 | #extension GL_ARB_texture_rectangle : enable
|
---|
3 | uniform sampler2DRect uDstTex;
|
---|
4 | uniform vec4 uDstClr;
|
---|
5 | void vboxCKeyDst(void)
|
---|
6 | {
|
---|
7 | vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[2]));
|
---|
8 | vec3 difClr = dstClr.rgb - uDstClr.rgb;
|
---|
9 | if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01)))
|
---|
10 | || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01))))
|
---|
11 | discard;
|
---|
12 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.