Advanced Computer Graphics: Laboratory Project

<< PREV | INDEX | NEXT >>

Task 2B: Do a Cubemap Texture Lookup

Preparation

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

Description

The cubemap contains the view of the environment from the object's perspective along the six positive and negative axes. By sampling this texture and applying the result to the model's surface, the model will appear to reflect the environment.

Hint

Use the provided cubeTexcoord and the texCUBE intrinsic to do the texture lookup.

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


<< PREV | INDEX | NEXT >>