Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-03 08:56:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-03 08:56:16 +0300
commitd28b29d428cc7fc7eb29f2302b5d80fc63a9f870 (patch)
tree50fbd244dddfd2419a7be61926ce52a1039d1589 /source/blender/gpu/GPU_vertex_format.h
parent6cb39720638735e0517c82ffe9698b5cb31060d9 (diff)
GPU: add negated normal conversion functions
Saves having to negate to a temporary variable.
Diffstat (limited to 'source/blender/gpu/GPU_vertex_format.h')
-rw-r--r--source/blender/gpu/GPU_vertex_format.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_vertex_format.h b/source/blender/gpu/GPU_vertex_format.h
index 7a271caf079..74a86fbcb40 100644
--- a/source/blender/gpu/GPU_vertex_format.h
+++ b/source/blender/gpu/GPU_vertex_format.h
@@ -112,6 +112,8 @@ typedef struct GPUPackedNormal {
} GPUPackedNormal;
GPUPackedNormal GPU_normal_convert_i10_v3(const float data[3]);
+GPUPackedNormal GPU_normal_convert_i10_v3_negated(const float data[3]);
GPUPackedNormal GPU_normal_convert_i10_s3(const short data[3]);
+GPUPackedNormal GPU_normal_convert_i10_s3_negated(const short data[3]);
#endif /* __GPU_VERTEX_FORMAT_H__ */