Advanced Computer Graphics: Laboratory Project

<< PREV | INDEX | NEXT >>

Task 1C: Calculate the Specular Lighting Term

Preparation

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

Description

The reflective properties of a shiny surface creates highlights which are strongest when the eye vector is parallell to the reflection direction. The specular lighting term is thus view dependent since the appearance of a particular surface changes as the eye moves relative the object. For further details see Chapter 4.3.2 in the course book.

Hint

In order to compute x to the power of y, use the intrinsic pow.

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


<< PREV | INDEX | NEXT >>