frenchtoast747 / webgl-obj-loader

A simple OBJ model loader to help facilitate the learning of WebGL.
http://frenchtoast747.github.io/webgl-obj-loader/
MIT License
281 stars 59 forks source link

Models: Fix normals on pedestal and unbroken wall #65

Closed qtip closed 4 years ago

qtip commented 4 years ago

This commit fixes shading issues in the demo scene due to incorrect "smooth" normals in the pedestal and unbroken wall.

The original models had non-orthogonal normals which caused the lighting calculations to assume that the pedestal was meant to be an organic shape along the edge between tops and sides. I did leave correctly smooth normals around the cylindrical faces where appropriate.