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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-06-29 15:54:38 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-29 15:59:30 +0300
commitccca2c01649106ee24ad7407f182919eceda5bd9 (patch)
tree468dae28c0c2d886c737fae3f7af8b1b77bb66af /source/blender/draw/engines/workbench/workbench_materials.c
parent5ba87cf22ebdfa660ec2044a8e97c3501c573176 (diff)
Workbench: Spherical Harmonics tests
Added a compile directive in order to test SH4 in stead of SH2Win. For now I disabled SH4, it is a bit more clear, but has a small performance impact. Will check later for a better approach
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_materials.c')
-rw-r--r--source/blender/draw/engines/workbench/workbench_materials.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_materials.c b/source/blender/draw/engines/workbench/workbench_materials.c
index 56b177d1afc..6755bf82ecd 100644
--- a/source/blender/draw/engines/workbench/workbench_materials.c
+++ b/source/blender/draw/engines/workbench/workbench_materials.c
@@ -100,7 +100,10 @@ char *workbench_material_build_defines(WORKBENCH_PrivateData *wpd, bool use_text
#if STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL == 2
BLI_dynstr_appendf(ds, "#define STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL 2\n");
#endif
- BLI_dynstr_appendf(ds, "#define STUDIOLIGHT_SPHERICAL_HARMONICS_MAX_COMPONENTS 9\n");
+#if STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL == 4
+ BLI_dynstr_appendf(ds, "#define STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL 4\n");
+#endif
+ BLI_dynstr_appendf(ds, "#define STUDIOLIGHT_SPHERICAL_HARMONICS_MAX_COMPONENTS 18\n");
str = BLI_dynstr_get_cstring(ds);
BLI_dynstr_free(ds);