2013-12-13

Practice Final #9.

Originally Posted By: meredith


A wood-like material is a diffuse material, in other words a material that has the same intensity when viewed from any angle. In more other words, a material that isn't shiny.

In the shader listed from the lectures, the position of the light source and vertex are given, from which a normalized vector to the light source from the vector is calculated, along with a normalized normal vector from the vertex. The dot product of these is taken and used to calculate the intensity vector from which a vec3 representing color is returned.
'''Originally Posted By: meredith''' <br><br>A wood-like material is a diffuse material, in other words a material that has the same intensity when viewed from any angle. In more other words, a material that isn't shiny. <br><br>In the shader listed from the lectures, the position of the light source and vertex are given, from which a normalized vector to the light source from the vector is calculated, along with a normalized normal vector from the vertex. The dot product of these is taken and used to calculate the intensity vector from which a vec3 representing color is returned.
X