diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-17 16:23:21 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-22 15:55:50 +0300 |
commit | ff19b527e85ec5144efbd663bf9b4c338e179358 (patch) | |
tree | 397303e299a17352e48cad3fcc7757b2d68c4538 /source/blender/blenkernel/BKE_studiolight.h | |
parent | c7df6182631ffe22aea1357c2f356c30c0d40dc5 (diff) |
Workbench: Calculate irradiance using radiance buffers
Diffstat (limited to 'source/blender/blenkernel/BKE_studiolight.h')
-rw-r--r-- | source/blender/blenkernel/BKE_studiolight.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/blenkernel/BKE_studiolight.h b/source/blender/blenkernel/BKE_studiolight.h index 863aab37f39..2fcf6ab2f19 100644 --- a/source/blender/blenkernel/BKE_studiolight.h +++ b/source/blender/blenkernel/BKE_studiolight.h @@ -38,6 +38,8 @@ #include "DNA_space_types.h" +#include "IMB_imbuf_types.h" + /* * These defines are the indexes in the StudioLight.diffuse_light * X_POS means the light that is traveling towards the positive X @@ -50,17 +52,16 @@ #define STUDIOLIGHT_Z_POS 4 #define STUDIOLIGHT_Z_NEG 5 -enum StudioLightFlag -{ - STUDIOLIGHT_DIFFUSE_LIGHT_CALCULATED = (1 << 0), - STUDIOLIGHT_LIGHT_DIRECTION_CALCULATED = (1 << 1), - STUDIOLIGHT_EXTERNAL_FILE = (1 << 2), - STUDIOLIGHT_ORIENTATION_CAMERA = (1 << 3), - STUDIOLIGHT_ORIENTATION_WORLD = (1 << 4), +enum StudioLightFlag { + STUDIOLIGHT_DIFFUSE_LIGHT_CALCULATED = (1 << 0), + STUDIOLIGHT_LIGHT_DIRECTION_CALCULATED = (1 << 1), + STUDIOLIGHT_EXTERNAL_FILE = (1 << 2), + STUDIOLIGHT_ORIENTATION_CAMERA = (1 << 3), + STUDIOLIGHT_ORIENTATION_WORLD = (1 << 4), + STUDIOLIGHT_RADIANCE_BUFFERS_CALCULATED = (1 << 5), } StudioLightFlag; -typedef struct StudioLight -{ +typedef struct StudioLight { struct StudioLight *next, *prev; int flag; char name[FILE_MAXFILE]; @@ -69,6 +70,7 @@ typedef struct StudioLight int index; float diffuse_light[6][3]; float light_direction[3]; + ImBuf *radiance_buffers[6]; } StudioLight; void BKE_studiolight_init(void); |