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:
authorTon Roosendaal <ton@blender.org>2006-12-08 21:37:55 +0300
committerTon Roosendaal <ton@blender.org>2006-12-08 21:37:55 +0300
commit4cdf96ae19d12862106ed777f9484d551f55b7b4 (patch)
tree0f9195a319156deb34c2d591bccac8eeb08011b0 /source/blender/render/intern/include/render_types.h
parentc9686f956294d574f2223cdc5ec41898ba21a4e3 (diff)
Lightgroups!
Functionality was a bit limited still; now added the option to bind a group of Lamps entirely to a Material, excluding them from any other Material. Note that Lamp visibility layer options still work as for Lamps usually. In preview.blend: made a lightgroup for all lamps, and set them to be the "RenderLayer override". That way it will ignore local material lightgroups for previews.
Diffstat (limited to 'source/blender/render/intern/include/render_types.h')
-rw-r--r--source/blender/render/intern/include/render_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h
index 247f10bf7a0..4a3b0324143 100644
--- a/source/blender/render/intern/include/render_types.h
+++ b/source/blender/render/intern/include/render_types.h
@@ -153,7 +153,8 @@ struct Render
/* render database */
int totvlak, totvert, tothalo, totlamp;
- ListBase lights;
+ ListBase lights; /* GroupObject pointers */
+ ListBase lampren; /* storage, for free */
int vertnodeslen;
struct VertTableNode *vertnodes;
@@ -300,6 +301,8 @@ typedef struct LampShadowSample {
} LampShadowSample;
typedef struct LampRen {
+ struct LampRen *next, *prev;
+
float xs, ys, dist;
float co[3];
short type, mode;