diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-08 12:40:44 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-08 12:40:44 +0300 |
commit | 902a69a7d3fad91d84bc109a6e6e5fd039a79e4b (patch) | |
tree | 113e76f7b85c50a428142086ac82e86eb9e2d9fb /source/blender/render/intern/include/render_types.h | |
parent | 3da771fefcde9efc3797bb08cd3d90d09dbe1f81 (diff) |
Numerous fixes in Render code:
- Bug: material emit was ignored (showed in preview render backdrop)
- Bug: world exposure was ignored
- Bug: lamp halo was ignoring 'render layer light override'.
Further reshuffled the way shadows are being pre-calculated, this to enable
more advanced (and faster) usage of Material lightgroups. Now shadows are
being cached in lamps, using a per-sample counter to check if a recalc is
needed. Will also work (later) for Raytracing node shaders.
- New: Material LightGroup option "Always", which always shades the lights
in the group, independent of visibility layer. (so it allows to move such
lights to hidden layer, not influencing anything).
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; |