VirtualBox

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

Last change on this file since 35740 was 35579, checked in by vboxsync, 13 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.

© 2023 Oracle
ContactPrivacy policyTerms of Use