# LabA09 Shadow Maps

## Scaffold Project to Start with

{% embed url="<https://github.com/zhaoyoubing/proj02/tree/LabA09_shadowmap_start>" %}

With this scaffold project, you only need to work on the following files:

<mark style="color:red;">shaders/</mark><mark style="color:red;">**shadowmap.vert**</mark> <mark style="color:red;"></mark>&#x20;

<mark style="color:red;">shaders/</mark><mark style="color:red;">**shadowmap.frag**</mark>&#x20;

<mark style="color:red;">src/</mark><mark style="color:red;">**main.cpp**</mark>

Search those files with "**TODO**" to find sections that you need to work on.

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FbKsoYDvvJBYTus5Z6zqc%2Fimage.png?alt=media&#x26;token=6c24f384-708b-4ea1-a47d-451820839d82" alt="" width="563"><figcaption></figcaption></figure>

Depth Rendering with Front Face Culling (the background should be white for the real shadow map)

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2F2WQFuOvkhmTqpJjdbgAp%2Fimage.png?alt=media&#x26;token=196733c4-adb4-42f0-9d92-4fc7e998d951" alt="" width="563"><figcaption></figcaption></figure>
