Reference:Consts.inc

From POV-Wiki
Jump to navigation Jump to search

This file defines a number of constants, including things such as mapping types and ior definitions.

Vector constants

o = < 0, 0, 0> (origin)
xy = < 1, 1, 0>
yz = < 0, 1, 1>
xz = < 1, 0, 1>

Map type constants

Plane_Map = 0
Sphere_Map = 1
Cylinder_Map = 2
Torus_Map = 5

Interpolation type constants

Bi = 2
Norm = 4

Fog type constants

Uniform_Fog = 1
Ground_Fog = 2

Focal blur hexgrid constants

Hex_Blur1 = 7
Hex_Blur2 = 19
Hex_Blur3 = 37

IORs

Air_Ior = 1.000292
Amethyst_Ior = 1.550
Apatite_Ior = 1.635
Aquamarine_Ior = 1.575
Beryl_Ior = 1.575
Citrine_Ior = 1.550
Crown_Glass_Ior = 1.51
Corundum_Ior = 1.765
Diamond_Ior = 2.47
Emerald_Ior = 1.575
Flint_Glass_Ior = 1.71
Flint_Glass_Heavy_Ior = 1.8
Flint_Glass_Medium_Ior = 1.63
Flint_Glass_Light_Ior = 1.6
Fluorite_Ior = 1.434
Gypsum_Ior = 1.525
Ice_Ior = 1.31
Plexiglas_Ior = 1.5
Quartz_Ior = 1.550
Quartz_Glass_Ior = 1.458
Ruby_Ior = 1.765
Salt_Ior = 1.544
Sapphire_Ior = 1.765
Topaz_Ior = 1.620
Tourmaline_Ior = 1.650
Water_Ior = 1.33

Dispersion amounts

Quartz_Glass_Dispersion = 1.012
Water_Dispersion = 1.007
Diamond_Dispersion = 1.035
Sapphire_Dispersion = 1.015

Scattering media type constants

ISOTROPIC_SCATTERING = 1;
MIE_HAZY_SCATTERING = 2;
MIE_MURKY_SCATTERING = 3;
RAYLEIGH_SCATTERING = 4;
HENYEY_GREENSTEIN_SCATTERING = 5;