hunterloftis / pbr

a Physically Based Renderer (PBR) in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normal maps

hunterloftis opened this issue · comments

Normal maps modify the normals used to calculate lighting at a point on a face. Currently, every Object in pbr provides the normal at a point. There's a place in the At function to add a normal map value to the computed normal and return that instead.

Normal maps are already loaded in along with other textures, they just aren't used.

Adding normal maps will greatly enhance the detail and realism of surfaces by allowing surfaces that have texture.