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

Sunflow Shaders
Diffuse
AO
Glass

Mirror
Phong
-Ward
Shiny
Constant
Janino

Ward

Below is an example of what the ward shader looks like



And what the shader block looks like

shader {
   name shadername
   type ward
   diff 1 1 1
   spec 1 1 1
   rough 1 2
}


Set shader type to ward to use this.

This is Sunflow's anisotropic shader. It almost the same as phong, but you can set the reflections blurryness along the x and\or y direction by changing the numbers at the end of 'rough'.

Also, the blurryer it is, the more grainy it seems too be, unlike in the phong shader

Also note that with ward, the higher the number the blurrier it is. Just the opposite of phong. So 0.01 in any or all of the 2 rough parameters will give you a nice sharp reflection. 0.5 will get you a nice blur to work off of.



< Back Next >