lab02 - CSE4431: Lab 2 Burton Ma Mon 23 Jan, 2012 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE4431: Lab 2 Burton Ma Mon 23 Jan, 2012 1 Introduction In this lab you will implement the ambient-diffuse-specular (ADS) illumination model using both the re- flection direction and halfway vector formulations in both the vertex shader and the fragment shader and observe the differences in the resulting images. 2 ADS Vertex Shader Copy the files from the directory /cse/course/4431/labs/02/ into a directory owned by you. The files are: ads.vert a vertex shader using the reflection direction for specular illumination passthrough.frag a fragment shader that passes through the interpolated color adsvertex.glib the glman configuration file Run glman and load the adsvertex.glib configuration file. Observe the appearance of the specular highlight. 2.1 Implement the Halfway Vector Formulation ads.vert uses the reflection direction in the specular illumination calculation. Create a new vertex shader that uses the halfway vector instead of the reflection direction. Recall that the halfway vector,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2012 for the course CSE 4431 taught by Professor Burton during the Winter '12 term at York University.

Page1 / 2

lab02 - CSE4431: Lab 2 Burton Ma Mon 23 Jan, 2012 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online