VirtualBox

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

Last change on this file since 71027 was 71027, checked in by vboxsync, 7 years ago

FE/Qt: big svn props cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 274 bytes
Line 
1/* $Id: splitBGRA.c 71027 2018-02-15 14:33:48Z 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