5.33. MaterialRaytrace (property)

<materialRaytrace> ‐ A material description for POVray raytracer

5.33.1. Attributes

NameTypeDefaults
idIDNone (required)

5.33.2. Description

This element defines the material properties for POVray raytracer. These values are not used for interactive rendering through OpenGL and they are also not used for Renderman output.

The element materialRaytrace can have elements in its scope that define the material properties of the materialRaytrace. Since these elements can only be child of materialRaytrace, they are described in this section.

This element expects three entities in its scope:

5.33.3. Expected children

The following elements must occur in materialRaytrace:

Default values for the colorFilter attributes correspond to transparent black (0.0, 0.0, 0.0, 1.0). Default values for the float attributes of the finish element are 0.0, and false for the metallic attribute. Default values for the interior attributes are 0.0.

5.33.4. Example

The example below defines a materialRaytrace for bluish glass:

<materialRaytrace id="Col_Glass_Bluish">
  <colorFilter r="0.90" g="0.94" b="1.0" filter="0.8"/>
  <finish ambient="0"  brilliance="5" diffuse="0.1"
     metallic="false" reflection=".5"
     specular="0.6" roughness="0.002"/>
  <interior ior="1.5" caustics="1.0" fade_distance="1"
      fade_power="1001" />
</materialRaytrace>