Changeset 22883 in vbox for trunk/src/VBox/Frontends/VirtualBox/shaders/ckeyDst.c
- Timestamp:
- Sep 9, 2009 9:26:01 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/shaders/ckeyDst.c
r22776 r22883 2 2 uniform sampler2DRect uDstTex; 3 3 uniform vec4 uDstClr; 4 intvboxCKeyDst(void)4 void vboxCKeyDst(void) 5 5 { 6 vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[ 0]));6 vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[1])); 7 7 vec3 difClr = dstClr.rgb - uDstClr.rgb; 8 8 if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01))) 9 9 || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01)))) 10 10 discard; 11 return 1;12 11 }
Note:
See TracChangeset
for help on using the changeset viewer.