# Lab A07 Texture Mapping

## Scaffold project to start with (bunny model included)

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

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

## The bunny model with texture&#x20;

{% file src="<https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FTGR8zIQD7XIlCBROmODM%2Fbunny_normal.zip?alt=media&token=e9c68e13-812c-4e4a-9bd1-219da11cefd9>" %}

Unzip the file and copy the following files to your "models" directory:

bunny\_normal.obj

bunny\_normal.mtl

bunny-atlas.jpg

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2Fr9lvRRUpCGXRn7G4hCPa%2Fbunny-atlas.jpg?alt=media&#x26;token=0be287b6-e8c3-4b2a-b086-f2e5e83143e2" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FEWx4r8Em0xOopc18SfCa%2Fimage.png?alt=media&#x26;token=0984ad38-4daf-42ad-baa8-3be1b71b1706" alt="" width="483"><figcaption></figcaption></figure>

## Resources

### Model loading

{% embed url="<https://learnopengl.com/Model-Loading/Mesh>" %}

### Texture mapping

{% embed url="<https://learnopengl.com/Getting-started/Textures>" %}
