Content deleted Content added
No edit summary |
|||
Line 15:
Ci = Os * Cs * (Ka * ambient() + Ks * specular(Nf, V, roughness));
}
this is narasimham
Shaders do the work by reading and writing special variables like Cs - surface color, N - normal at given point, and Ci - final surface color.
The arguments to the shaders are global parameters that are attached to objects of the model (so one metal shader can be used for different metals and so on),
|