hunterloftis / pbr

a Physically Based Renderer (PBR) in Go
MIT License
1.15k stars 42 forks source link

Smoothing groups #31

Open hunterloftis opened 6 years ago

hunterloftis commented 6 years ago

Wavefront .obj files have the concept of "smoothing groups," which basically just means "interpolate the normals of these faces so the group of faces looks like a smooth surface."

pbr reads the basic .obj format but doesn't currently respect smoothing groups, so models that rely on smoothing groups end up looking like this:

baccante-1