VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/splitBGRA.c@ 22640

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

OSE fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 254 bytes
Line 
1
2float splitBGRA(vec4 color, float coord)
3{
4 int pix = int(coord);
5 float part = coord - float(pix);
6 /* todo: do not use if */
7 if(part < 0.25)
8 return color.b;
9 if(part < 0.5)
10 return color.g;
11 if(part < 0.75)
12 return color.r;
13 return color.a;
14}
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