View Single Post
Old January 29th, 2007   #50 (permalink)
chancet
Registered User
 
Join Date: Jan 2007
Location: Pembroke
Posts: 5
Quote:
Originally Posted by SimoneT View Post
All shaders runs without know the color depth. Color is a vector with four components (RGBA), every component is in 0.0 to 1.0 range. For example, if the depth is 16bit(R5G5B5A1) the steps from 0.0 to 1.0 are equals to 1.0/31.0 for R, G and B, and for 32bit (R8G8B8A8) are equals to 1.0/255.0. You can decrease the number of steps (from 1.0/255.0 to 1.0/31.0, AKA dithering) but you can't increase the number of the steps (from 1.0/31.0 to 1.0/255.0) without some interpolation. In other words: you can decrease color depth but you cannot increase it.
I hope that my Engrish (for Hushypushy) is comprehensible.
Ciao.
thanks. luckily i'm a programmer but am not too up to snuff with color implementation. a shader couldn't do it but i suppose them dudes that do the other type of plugins have it in their area. i'll bother them about it.
chancet is offline   Reply With Quote