next up previous contents
Next: 1.10 Light Up: 1. Base Shaders/A> Previous: 1.8 Geometry

1.9 Photon

Basic

The basic photon shader supports diffuse reflection and specular reflection and transmission/refraction.

  

    color "mib_photon_basic" (
        color           "diffuse",
        color           "specular",
        color           "transp",
        scalar          "ior_frac")

diffuse is the diffuse color.

specular is the specular color, which controls reflectivity.

transp is the fraction of light transmitted.

ior_frac is the refraction index ratio. It is used if the photon material is transparent.



Copyright 2001 by mental images