VirtualBox

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

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

Frontends: tabs -> spaces.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date 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