diff options
Diffstat (limited to 'source/blender/render/intern/include/render_types.h')
-rw-r--r-- | source/blender/render/intern/include/render_types.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h index 77beb446c86..247f10bf7a0 100644 --- a/source/blender/render/intern/include/render_types.h +++ b/source/blender/render/intern/include/render_types.h @@ -290,8 +290,13 @@ struct MTex; * properties of a lightsource. */ +typedef struct LampShadowSubSample { + int samplenr; + float shadfac[4]; /* rgba shadow */ +} LampShadowSubSample; + typedef struct LampShadowSample { - float shadfac[16][4]; /* 16 = RE_MAX_OSA, 4 = rgba */ + LampShadowSubSample s[16]; /* MAX OSA */ } LampShadowSample; typedef struct LampRen { @@ -344,8 +349,7 @@ typedef struct LampRen { float area[8][3], areasize; /* passes & node shader support: all shadow info for a pixel */ - /* struct is currently 2k long... check on alloc? */ - LampShadowSample shadsamp[BLENDER_MAX_THREADS]; + LampShadowSample *shadsamp; /* yafray: photonlight params */ int YF_numphotons, YF_numsearch; |