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

Sunflow Shaders
Diffuse
AO
-Glass

Mirror
Phong
Ward
Shiny
Constant
Janino

GLASS

Below is an example of what the glass shader looks like



And what the shader block looks like

shader {
   name shadername
   type glass
   eta 1.5
   color 1 1 1
}


Simply type in 'glass' as the shader type.

In this shader 'eta' sets the Index of Refraction (IOR) or the object. The lower the eta, the lower the refractive value. As well as the reflectivity. See the red sphere at the top, its neither refractive, or reflective. Its eta is set to 1.

Again, try to keep the colour below 1, otherwise it'll get too bright, like below.


Common glass would have an IOR from around 1.5 to 1.9. Water at 20C is 1.333 and ice is 1.31. These may come in handy most of the time, but here's a better list.

So what would some of these look like in sunflow? Well, just take a look at the image below.


  • Light red - silicon - eta 4.01
  • Green - water (20C) - eta 1.33
  • Light blue - diamond - eta 2.419
  • Yellow - ethanol - eta 1.36
  • Purple - glass - eta 1.5
  • Blue - glass - eta 1.9
  • Orange - cubic zerconia - eta 2.15
  • Cyan - ? - eta 6 ( example of higher eta value )
  • White - ? - eta 20 ( example of very high eta value )



< Back Next >