POV-Ray's dispersion algorithm assumes that the given IOR is for a
wavelength midway between red and violet. However, IORs are normally
given at wavelength D (yellow-orange), which causes POV-Ray to shift the
positions of the colors. File iorsuggest.inc provides a function that
suggests an adjustment to a material's index of refraction that yields
reasonably accurate dispersion for most materials.
File srgb.inc has been updated to include sRGB decoders. I omitted
these in previous versions because POV-Ray 3.7+ has a built-in sRGB
decoder. However, since this file is supposed to be compatible to 3.5,
I added the decoders for those POVers who are still using older versions.
These files are part of my collection at
Post a reply to this message