Previous:Advanced Texture Options   Main Index   Next:Using Color List Pigments



Pigments

Every surface must have a color. In POV-Ray this color is called a pigment. It does not have to be a single color. It can be a color pattern, a color list or even an image map. Pigments can also be layered one on top of the next so long as the uppermost layers are at least partially transparent so the ones beneath can show through. Let's play around with some of these kinds of pigments.

We create a file called texdemo.pov and edit it as follows:

  #include "colors.inc"

  camera {

    location <1, 1, -7>

    look_at 0

    angle 36

  }

  light_source { <1000, 1000, -1000> White }

  plane { y, -1.5

    pigment { checker Green, White }

  }

  sphere { <0,0,0>, 1

    pigment { Red }

  }

Giving this file a quick test render at 200x150 -A we see that it is a simple red sphere against a green and white checkered plane. We will be using the sphere for our textures.



Previous:Advanced Texture Options   Main Index   Next:Using Color List Pigments