VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/mainOverlayNoDiscard.c@ 74942

Last change on this file since 74942 was 71027, checked in by vboxsync, 6 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: 457 bytes
Line 
1/* $Id: mainOverlayNoDiscard.c 71027 2018-02-15 14:33:48Z vboxsync $ */
2#extension GL_ARB_texture_rectangle : enable
3uniform sampler2DRect uDstTex;
4uniform vec4 uDstClr;
5void vboxCConv();
6void main(void)
7{
8 vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[1]));
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.

© 2023 Oracle
ContactPrivacy policyTerms of Use