|
|
"Bald Eagle" <cre### [at] netscapenet> wrote:
> It seems to me that the color conversion code is in
> source/base/image/colourspace.cpp
This is what was in the source code, which seems to be exactly what you have.
Maybe it has something to do with the way POV-Ray does math through SDL vs
through compiled code (float vs double, etc)
#declare SRGB_Encode = function (C) {
select (0.0031308-C, C*12.92, C*12.92, 1.055 * pow (C, 1/2.4) - 0.055)
}
#declare SRGB_Decode = function (C) {
select (0.04045-C, C/12.92, 1.055 * pow ((C+0.055)/1.055, 2.4))
Post a reply to this message
|
|