Last change
on this file since 55401 was 55401, checked in by vboxsync, 10 years ago |
added a couple of missing Id headers
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
457 bytes
|
Line | |
---|
1 | /* $Id: mainOverlayNoDiscard2.c 55401 2015-04-23 10:03:17Z vboxsync $ */
|
---|
2 | #extension GL_ARB_texture_rectangle : enable
|
---|
3 | uniform sampler2DRect uDstTex;
|
---|
4 | uniform vec4 uDstClr;
|
---|
5 | void vboxCConv();
|
---|
6 | void main(void)
|
---|
7 | {
|
---|
8 | vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[2]));
|
---|
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 | {
|
---|
13 | gl_FragColor = dstClr;
|
---|
14 | }
|
---|
15 | else
|
---|
16 | {
|
---|
17 | vboxCConv();
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.