[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I hope this is helpful.
I modified my pixelshader routine to use the hardware-independant RGB
format. It uses the same RGB format the polygon3d routines use. Here
is the code
unsigned long pixelshade(unsigned long col, unsigned long level)
{
return
(((col&255)*level)>>8)|
((((col>>8)&255)*level)&0xFF00)|
(((((col>>16)&255)*level)&0xFF00)<<8);
}
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/