VirtualBox

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

Last change on this file since 64358 was 55401, checked in by vboxsync, 10 years ago

added a couple of missing Id headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 274 bytes
Line 
1/* $Id: splitBGRA.c 55401 2015-04-23 10:03:17Z vboxsync $ */
2float vboxSplitBGRA(vec4 color, float coord)
3{
4 int pix = int(coord);
5 float part = coord - float(pix);
6 if(part < 0.25)
7 return color.b;
8 if(part < 0.5)
9 return color.g;
10 if(part < 0.75)
11 return color.r;
12 return color.a;
13}
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