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:
authorClément Foucault <foucault.clem@gmail.com>2020-02-19 03:44:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-02-19 03:57:06 +0300
commite82827bf6ed54a1d1552ac9176df9e309b4d29e2 (patch)
tree10b10084cc42f21d77ed7aca8cf0f424bc37c58f /source/blender/makesdna/DNA_scene_types.h
parent77619f527403608a349b3037d18f71893d4484d1 (diff)
DRW: New High Quality Normal & Tangent extract
This patch adds a dedicated path to extract 16bit normals instead of packing them into 10bits/comp. The tangents are also packed to 10bits/comp if not using the new High Quality Normal option. Fix T61024 Degraded texture shading on dense meshes Reviewed By: brecht Differential Revision: https://developer.blender.org/D6614
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 13bbd9319a0..f66ce132edb 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -750,7 +750,10 @@ typedef struct RenderData {
/* render engine */
char engine[32];
- char _pad2[4];
+ char _pad2[2];
+
+ /* Performance Options */
+ short perf_flag;
/* Cycles baking */
struct BakeData bake;
@@ -776,6 +779,11 @@ typedef struct RenderData {
struct CurveMapping mblur_shutter_curve;
} RenderData;
+/* RenderData.quality_flag */
+typedef enum eQualityOption {
+ SCE_PERF_HQ_NORMALS = (1 << 0),
+} eQualityOption;
+
/* RenderData.hair_type */
typedef enum eHairType {
SCE_HAIR_SHAPE_STRAND = 0,