obj-loader Tangent fix 34/136934/7
authorgreynaga <g.reynaga@samsung.com>
Mon, 3 Jul 2017 16:16:04 +0000 (17:16 +0100)
committergreynaga <g.reynaga@samsung.com>
Fri, 7 Jul 2017 13:53:05 +0000 (14:53 +0100)
commit535268ca85e2f079f8601ac65ade9bc69df730ce
tree7dfbc0011914b21f075ff32fb9c9af0d870942be
parentf53e80d9150c6e7cde817028dc9f31d053f52516
obj-loader Tangent fix

The tangent was generated by vertex, and was changed to per normal, this will work if the normal are defined per vertex.

This patch is creating good results with the current models tested, but depends on the output of the exporter.

In case the tangents are not correct, the 3D model should be re-exported or generate the normals programmatically.

Change-Id: I35cdf2ce581974ab5fbc85709442bcb3a8112b8f
examples/rendering-basic-pbr/obj-loader.cpp
examples/rendering-basic-pbr/obj-loader.h