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

Sunflow Shaders
Diffuse
AO
Glass

Mirror
Phong
Ward
-Shiny
Constant
Janino

Shiny

Below is an example of what the shiny shader looks like



And what the shader block looks like

shader {
   name shadername
   type shiny
   diff 1 1 1
   refl 1
}


Set shader type to shiny to use this.

'diff' controls the colour and 'refl' controls the amount of reflectivity. The higher the 'refl' value, the more reflective the object will be. 1 is as high as you would need in almost all cases. If set to 0, then there is no reflection and looks simmilar to the diffuse shader.

This shader adds a reflection onto a diffuse colour, unlike the mirror shader, which makes it highly reflective with some colour variations.

Here is another example using a more detailed object.




< Back Next >