Difference between revisions of "Reference:Consts.inc"

From POV-Wiki
Jump to navigation Jump to search
(Created page with "{{#indexentry:include files, const.inc}} <p>This file defines a number of constants, including things such as mapping types and ior definitions.</p> {{#indexentry:include fil...")
 
m (Indexentries fix)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
<p>This file defines a number of constants, including things such as mapping types and ior definitions.</p>
 
<p>This file defines a number of constants, including things such as mapping types and ior definitions.</p>
  
 +
==Vector constants==
 
{{#indexentry:include files, vector constants}}
 
{{#indexentry:include files, vector constants}}
==Vector constants==
 
 
<dl>
 
<dl>
 
<dt><code>o</code> = &lt; 0, 0, 0&gt; (origin)<!--</dt>--->
 
<dt><code>o</code> = &lt; 0, 0, 0&gt; (origin)<!--</dt>--->
Line 11: Line 11:
 
</dl>
 
</dl>
  
 +
==Map type constants==
 
{{#indexentry:include files, map type constants}}
 
{{#indexentry:include files, map type constants}}
==Map type constants==
 
 
<dl>
 
<dl>
 
<dt><code>Plane_Map</code> = 0<!--</dt>--->
 
<dt><code>Plane_Map</code> = 0<!--</dt>--->
Line 20: Line 20:
 
</dl>
 
</dl>
  
 +
==Interpolation type constants==
 
{{#indexentry:include files, interpolation type constants}}
 
{{#indexentry:include files, interpolation type constants}}
==Interpolation type constants==
 
 
<dl>
 
<dl>
 
<dt><code>Bi</code> = 2<!--</dt>--->
 
<dt><code>Bi</code> = 2<!--</dt>--->
Line 27: Line 27:
 
</dl>
 
</dl>
  
 +
==Fog type constants==
 
{{#indexentry:include files, fog type constants}}
 
{{#indexentry:include files, fog type constants}}
==Fog type constants==
 
 
<dl>
 
<dl>
 
<dt><code>Uniform_Fog</code> = 1<!--</dt>--->
 
<dt><code>Uniform_Fog</code> = 1<!--</dt>--->
Line 34: Line 34:
 
</dl>
 
</dl>
  
 +
==Focal blur hexgrid constants==
 
{{#indexentry:include files, focal blur hexgrid constants}}
 
{{#indexentry:include files, focal blur hexgrid constants}}
==Focal blur hexgrid constants==
 
 
<dl>
 
<dl>
 
<dt><code>Hex_Blur1</code> = 7<!--</dt>--->
 
<dt><code>Hex_Blur1</code> = 7<!--</dt>--->
Line 42: Line 42:
 
</dl>
 
</dl>
  
 +
==IORs==
 
{{#indexentry:include files, ior constants}}
 
{{#indexentry:include files, ior constants}}
==IORs==
 
 
<dl>
 
<dl>
 
<dt><code>Air_Ior</code> = 1.000292<!--</dt>--->
 
<dt><code>Air_Ior</code> = 1.000292<!--</dt>--->
Line 73: Line 73:
 
</dl>
 
</dl>
  
 +
==Dispersion amounts==
 
{{#indexentry:include files, dispersion amount constants}}
 
{{#indexentry:include files, dispersion amount constants}}
==Dispersion amounts==
 
 
<dl>
 
<dl>
 
<dt><code>Quartz_Glass_Dispersion</code> = 1.012<!--</dt>--->
 
<dt><code>Quartz_Glass_Dispersion</code> = 1.012<!--</dt>--->
Line 82: Line 82:
 
</dl>
 
</dl>
  
 +
==Scattering media type constants==
 
{{#indexentry:include files, scattering media type constants}}
 
{{#indexentry:include files, scattering media type constants}}
==Scattering media type constants==
 
 
<dl>
 
<dl>
 
<dt><code>ISOTROPIC_SCATTERING</code> = 1;<!--</dt>--->
 
<dt><code>ISOTROPIC_SCATTERING</code> = 1;<!--</dt>--->

Latest revision as of 01:30, 17 December 2016

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;