diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-01-30 04:44:56 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-01-30 04:46:01 +0300 |
commit | c27d30f3eaf866fed12adaa84bae48937ad56e53 (patch) | |
tree | a38df079820b112331ca5ddf41b31c7a4dbc7d38 /source/blender/blenkernel/BKE_displist_tangent.h | |
parent | 4482d70f6e0dd3e3f455236915357a69898dc9be (diff) |
Displist: Add mikktspace tangent space generation for DL_INDEX3
This now matches the Mesh behavior. Surfaces and metaball implementation
are yet to be implemented.
Diffstat (limited to 'source/blender/blenkernel/BKE_displist_tangent.h')
-rw-r--r-- | source/blender/blenkernel/BKE_displist_tangent.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_displist_tangent.h b/source/blender/blenkernel/BKE_displist_tangent.h new file mode 100644 index 00000000000..3af7c513f67 --- /dev/null +++ b/source/blender/blenkernel/BKE_displist_tangent.h @@ -0,0 +1,26 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __BKE_DISPLIST_TANGENT_H__ +#define __BKE_DISPLIST_TANGENT_H__ + +/** \file + * \ingroup bke + */ + +void BKE_displist_tangent_calc(const DispList *dl, float (*fnormals)[3], float (**r_tangent)[4]); + +#endif /* __BKE_DISPLIST_TANGENT_H__ */ |