Changeset 26509 in vbox for trunk/src/VBox/Frontends/VirtualBox/shaders
- Timestamp:
- Feb 14, 2010 9:35:03 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57680
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/shaders/splitBGRA.c
r22776 r26509 2 2 { 3 3 int pix = int(coord); 4 5 6 7 8 9 10 11 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 12 }
Note:
See TracChangeset
for help on using the changeset viewer.