CPSC 310 March 2 Assignment

Create a pixel shader that implements ambient and diffuse bump map lighting. Begin by creating a project that displays the model Sphere.skp or GeoSphere.skp. Then add a pixel shader that defines ambient light color, diffuse light color, and diffuse light direction. The shader should use the equaion pixelrgb * ambientrgb + pixelrgb* diffusergb * abs cos θ to calculate a pixel's color (remember to clamp the output color). Then add a bump map to the pixel shader by modifying using the normals specified in the texture BumpMap.jpg. To submit your code, zip the directory containing your visual studio project and upload it to the course Inquire site.