VirtualBox

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

Last change on this file since 52874 was 35579, checked in by vboxsync, 14 years ago

scm: cleanups and adjustments

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