Last change
on this file since 49050 was 35579, checked in by vboxsync, 14 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 | |
---|
1 | float 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.