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/blenkernel/BKE_studiolight.h
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/blenkernel/BKE_studiolight.h')
-rw-r--r--source/blender/blenkernel/BKE_studiolight.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_studiolight.h b/source/blender/blenkernel/BKE_studiolight.h
index e3edcca5aca..f8a9498724e 100644
--- a/source/blender/blenkernel/BKE_studiolight.h
+++ b/source/blender/blenkernel/BKE_studiolight.h
@@ -62,7 +62,7 @@
#define STUDIOLIGHT_ICON_SIZE 96
#define STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL 2
-#define STUDIOLIGHT_SPHERICAL_HARMONICS_MAX_COMPONENTS 9
+#define STUDIOLIGHT_SPHERICAL_HARMONICS_MAX_COMPONENTS 18
#if STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL == 0
# define STUDIOLIGHT_SPHERICAL_HARMONICS_COMPONENTS 1
@@ -77,6 +77,9 @@
# define STUDIOLIGHT_SPHERICAL_HARMONICS_WINDOWING_TARGET_LAMPLACIAN 10.0f
#endif
+#if STUDIOLIGHT_SPHERICAL_HARMONICS_LEVEL == 4
+# define STUDIOLIGHT_SPHERICAL_HARMONICS_COMPONENTS 18
+#endif
struct GPUTexture;
struct StudioLight;