VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/ckeyDst2.c@ 23962

Last change on this file since 23962 was 22883, checked in by vboxsync, 15 years ago

fideo hw accel: fix for ATI + small optimizations

File size: 371 bytes
Line 
1#extension GL_ARB_texture_rectangle : enable
2uniform sampler2DRect uDstTex;
3uniform vec4 uDstClr;
4void vboxCKeyDst(void)
5{
6 vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[2]));
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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette