Advanced Computer Graphics: Laboratory Project

<< PREV | INDEX | NEXT >>

Task 2C: Calculate the Reflection Vector

Preparation

Locate $TASK 2C in the CgFX file 'carscene-2.fx'.

Description

The reflection vector is used to find the ray of light leaving a particular point in the environment, bouncing off the surface of the object, and entering the eye.

Hint

Use the reflect intrinsic to reflect the direction vector in the plane defined by the normal vector.

Build/run the application when you think you have completed this task.


<< PREV | INDEX | NEXT >>