diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-30 15:43:58 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-30 15:43:58 +0300 |
commit | 2ec00ea0c1be1ace7cd0c7b68e43cc8e87dd07c7 (patch) | |
tree | bcea6f830039d7ef67dcd1a9a95b767d2af19958 /source/blender/blenkernel/BKE_multires.h | |
parent | 9d335d29c775939b22dffedc303ecce9fec4e52f (diff) |
Move tangents and baking to looptris:
Notes:
* Code in rendering and in game engine will still convert
tangents to a tessface representation. Added code that
takes care of tangent layer only, might be removed
when BGE and rendering goes full mlooptri mode.
* Baking should work discovered some dead code while
I was working on the patch, also tangents are broken
when baking from multires (also in master), but those
are separate issues that can be fixed later.
This should fix T45491 as well
Diffstat (limited to 'source/blender/blenkernel/BKE_multires.h')
-rw-r--r-- | source/blender/blenkernel/BKE_multires.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_multires.h b/source/blender/blenkernel/BKE_multires.h index a8242a529f3..178751d1640 100644 --- a/source/blender/blenkernel/BKE_multires.h +++ b/source/blender/blenkernel/BKE_multires.h @@ -42,6 +42,11 @@ struct MultiresModifierData; struct Object; struct Scene; +struct MLoop; +struct MVert; +struct MPoly; +struct MLoopTri; + /* Delete mesh mdisps and grid paint masks */ void multires_customdata_delete(struct Mesh *me); @@ -114,6 +119,6 @@ void multires_topology_changed(struct Mesh *me); /**** interpolation stuff ****/ void old_mdisps_bilinear(float out[3], float (*disps)[3], const int st, float u, float v); -int mdisp_rot_face_to_crn(const int corners, const int face_side, const float u, const float v, float *x, float *y); +int mdisp_rot_face_to_crn(struct MVert *mvert, struct MPoly *mpoly, struct MLoop *mloops, const struct MLoopTri *lt, const int face_side, const float u, const float v, float *x, float *y); #endif /* __BKE_MULTIRES_H__ */ |