Thicket-Blender / thicket

Thicket: Laubwerk Plants Add-on for Blender
GNU General Public License v2.0
65 stars 8 forks source link

Support two sided materials and fix normals #24

Closed dvhart closed 4 years ago

dvhart commented 4 years ago

Thanks to @JaWalli for reporting the lack of support for two-sided materials (like leaves) and noticing the normals were pointing in the wrong direction. This resulted in this PR which adds support for two-sided materials and corrects the normals by refactoring the geometry generation code, reducing lines of code, complexity, and optimizing the approach to scale and rotation.