Go to:
Attributes.
The dielectric_material shader is a physically
based material shader which can be used to simulate dielectric media
such as glass, water, and other liquids. The shader uses Fresnel's
formulas for dielectric interfaces. This means that most light is
transmitted through the surface for perpendicular incident directions
while most light is reflected by the surface for grazing incident
angles, simulating the behavior of real dielectric materials. The
shader also uses Beer's law for absorption of light that passes
through a medium. This means that the light is subject to an
exponential falloff as it is transmitted between two surfaces with
dielectric material.
Two types of dielectric interfaces are supported: dielectric-air
simulates the interface between a dielectric material and air, such as
glass-air, and dielectric-dielectric simulates the interface between
two dielectric materials, such as glass-water.
Two achieve physically correct simulations it is important to use
the correct surface interfaces. When modeling a glass of cognac three
different interfaces are required: glass-air, glass-cognac, and
cognac-air. The dielectric material uses the normals of the surface to
distinguish the media on either side of the interface. For a
dielectric-air interface the normals point into the air. For a
dielectric-dielectric interface the normal point into a dielectric
material which is "outside". To use the dielectric material the model
normals must be oriented correctly unless the ignore_normals parameter
is set to true. This shader cannot be used as a shadow shader.
The .mi declaration is:
color "dielectric_material" (
color "col",
scalar "ior",
color "col_out",
scalar "ior_out",
boolean "ignore_normals"
scalar "phong_coef",
array lights "lights"
)
The components of the declaration are described below in the
corresponding attributes.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
dielectric_material | MPxNode | rendernode/mentalray/material:shader/surface:swatch/mentalRaySwatchGen | | |
Attributes (17)
col, colB, colG, colR, col_out, col_outB, col_outG, col_outR, ignore_normals, ior, ior_out, lights, outValue, outValueB, outValueG, outValueR, pcoef
Long name (short name) | Type | Default | Flags |
---|
|
col
(S00 )
| float3 | 0, 0, 0 | |
|
|
|
|
|
ior
(S01 )
| float | 1.5 | |
|
|
col_out
(S02 )
| float3 | 1, 1, 1 | |
|
|
|
|
|
ior_out
(S03 )
| float | 1 | |
|
|
ignore_normals
(S04 )
| bool | false | |
|
|
pcoef
(S05 )
| float | 0 | |
|
|
lights
(S06 )
| Message | 0 | |
|
|
outValue
(S07 )
| float3 | 0, 0, 0 | |
|
| outValueR
(S07R )
| float | 0 | | |
|
| outValueG
(S07G )
| float | 0 | | |
|
| outValueB
(S07B )
| float | 0 | | |
|