# Lab A08 Normal Mapping

## Scaffold Project to start with (Box\_normal model included)

<https://github.com/zhaoyoubing/proj02/tree/LabA08_normalmap_start>

With this scaffold project, you only need to work on <mark style="color:red;">**Mesh.cpp**</mark> and two shaders: <mark style="color:red;">**normalmap.vert**</mark> and <mark style="color:red;">**normalmap.frag**</mark>.

## The Box\_normal model

{% file src="<https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FmQgaApxNyzrMIRUqA0za%2Fbox_Normal.zip?alt=media&token=3d3c41b0-20aa-4699-8c70-48331197c351>" %}

Unzip the file and copy all the four files to your models directory, including:

Box\_normal.obj

Box\_normal.mtl

box\_BaseColor.png (diffuse texture map)

box\_Normal.png (normal map)

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FDwpz17HsoxsKyEQ60c0s%2F8f992504-31da-470e-abcf-15edc6fc6311.png?alt=media&#x26;token=c0e1a143-22b8-4be9-9efa-d205d7884b3c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FZnLt3V0zvpZ7zxKbIDgu%2Fimage.png?alt=media&#x26;token=792e31a7-b945-4336-a933-500f83a204ea" alt="" width="483"><figcaption></figcaption></figure>

## More Mapping

### Skybox

{% embed url="<https://learnopengl.com/Advanced-OpenGL/Cubemaps>" %}
