Blender Git Commit Log
Git Commits -> Revision a482385
Revision a482385 by Bastien Montagne (temp_custom_loop_normals) August 7, 2014, 17:22 (GMT) |
Switch clnors data from float[2] to short[2]. Suggested by Campbell, saves memory and does not make things slower (perhaps even slightly faster), even though it asks for a few more operations... Note the way alpha factor is handled is a bit different now, since with shorts it's simpler to always keep factor-like value in the 'virtual' [-1, 1] (real [-SHRT_MAX, SHRT_MAX]) range. Code is a bit more verbose, since we do not have much math helpers for short 2d vectors, but this is a detail that can be solved later. |
Commit Details:
Full Hash: a4823853542897fc0a0d074f417183ed4b43f157
Parent Commit: 57974dd
Lines Changed: +79, -60
7 Modified Paths:
/source/blender/blenkernel/BKE_mesh.h (+10, -9) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+44, -30) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+19, -15) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+44, -30) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+19, -15) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.h (+1, -1) (Diff)