From ccca2c01649106ee24ad7407f182919eceda5bd9 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 29 Jun 2018 14:54:38 +0200 Subject: 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 --- source/blender/blenkernel/BKE_studiolight.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_studiolight.h') 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; -- cgit v1.2.3