From 03bb97fb953006b7600e10037d1c1fe23d5721f6 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 4 Jun 2014 16:56:09 +0200 Subject: [PATCH] always compute proper UV tangents if possible --- src/librender/trimesh.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librender/trimesh.cpp b/src/librender/trimesh.cpp index 0339ccf9..d03366d7 100644 --- a/src/librender/trimesh.cpp +++ b/src/librender/trimesh.cpp @@ -386,8 +386,7 @@ void TriMesh::configure() { /* For manifold exploration: always compute UV tangents when a glossy material is involved. TODO: find a way to avoid this expense (compute on demand?) */ - if (hasBSDF() && (m_bsdf->getType() & BSDF::EGlossy)) - computeUVTangents(); + computeUVTangents(); } void TriMesh::prepareSamplingTable() {