Make your own free website on Tripod.com
Shaders in Sunflow

Sunflow Shaders
Diffuse
AO
Glass

-Mirror
Phong
Ward
Shiny
Constant
Janino

MIRROR

Below is an example of what the mirror shader looks like



And what the shader block looks like

shader {
   name shadername
   type mirror
   refl 1 1 1
}


Set shader type to mirror to use this.

The numbers after 'refl' adjust the reflectivity of the object. As there are 3 digits, the colour can also be defined. 1 1 1 will give you a perfect mirror. As seen in the top middle sphere, it reflects the colour of it's surroundings with perfect accuracy.

As you can see, the first collom of spheres are tinted darker. This is the result of refl values below 1. The very first one has a refl of '.4 .4 .4'.

A value above 1 in any of the three digits will result in an overly bright reflection, as seen in the third collom of spheres. This should be avoided for realistic results.



< Back Next >