Blender Git Commit Log
Git Commits -> Revision 8952f58
Revision 8952f58 by Bastien Montagne (master) January 11, 2014, 10:51 (GMT) |
Add tangent space computation/access from RNA (i.e. python). This simply mimics code used for loopnormals, to enable py scripts to generate and access (temporary) a tangent 3D vector and bitangent sign for each loop. Together with the split normals, this allow to recreate a complete tangent space for normal mapping (bitangent = bitangent_sign * cross(normal, tangent)). Expects all faces to be tri or quads. Reviewed By: Brecht, campbellbarton Differential Revision: https://developer.blender.org/D185 |
Commit Details:
Full Hash: 8952f58375385a6e8a636aa1e86763e88fc68fc0
Parent Commit: 274b259
Lines Changed: +243, -7
7 Modified Paths:
/source/blender/blenkernel/BKE_mesh.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/customdata.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+145, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+41, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+40, -0) (Diff)
/source/blender/blenkernel/intern/customdata.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+145, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+41, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+40, -0) (Diff)