---
layout: default
title: "Visualization of normals"
permalink: /pathtracer/visualization_of_normals
---

# Visualization of normals

For debugging purposes:

You can set the `bool normal_colors` to true in `student/debug.h` to check if the normals that you have computed at the hit point are correct or not for debugging purposes.

Here are some reference results:

![normalviz](new_results/cbox_normal.png)

![normalviz](new_results/norm1.png)

![normalviz](new_results/norm2.png)

![normalviz](new_results/norm3.png)
