diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-07-05 19:36:56 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-07-05 19:39:45 -0300 |
commit | 12a8fedfe604c7b944030ba772093ac0e2a85c78 (patch) | |
tree | 4d4611324630b6e8872b9aad4ab70da976e71f81 /editor | |
parent | 58320b7f6cfe17ad3793a9ce6981b8ce0e50ad6a (diff) |
Some changes to dual paraboloid envmap generation, fixes somme bleeding
Diffstat (limited to 'editor')
-rw-r--r-- | editor/import/editor_import_collada.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp index 7f91cc86cf..5bf2da9912 100644 --- a/editor/import/editor_import_collada.cpp +++ b/editor/import/editor_import_collada.cpp @@ -554,10 +554,10 @@ static void _generate_tangents_and_binormals(const PoolVector<int> &p_indices, c tangent = Vector3(); } else { tangent = Vector3((t2 * x1 - t1 * x2) * r, (t2 * y1 - t1 * y2) * r, - (t2 * z1 - t1 * z2) * r) + (t2 * z1 - t1 * z2) * r) .normalized(); binormal = Vector3((s1 * x2 - s2 * x1) * r, (s1 * y2 - s2 * y1) * r, - (s1 * z2 - s2 * z1) * r) + (s1 * z2 - s2 * z1) * r) .normalized(); } @@ -920,8 +920,6 @@ Error ColladaImport::_create_mesh_surfaces(bool p_optimize, Ref<ArrayMesh> &p_me bn.z = -bn.z; vertex.tangent.d = vertex.normal.cross(vertex.tangent.normal).dot(bn) > 0 ? 1 : -1; - - print_line("Tangent " + itos(p_i) + ": " + vertex.tangent); } #endif |