From ae4fda82b026ae6e2b003c1105f329b7e76582b0 Mon Sep 17 00:00:00 2001 From: Daniel Stokes Date: Tue, 1 May 2012 02:50:17 +0000 Subject: Merging phase 1 of the BGE Harmony branch: * Shadow color now usable in the BGE * Simplified the shadow panel while "Blender Game" renderer is active * Added variance shadow maps for the BGE * Buffered shadows on sun lamps in the BGE (orthographic) * Light textures in the BGE --- source/blender/makesdna/DNA_lamp_types.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_lamp_types.h b/source/blender/makesdna/DNA_lamp_types.h index 8cf3814ada1..4884db14c57 100644 --- a/source/blender/makesdna/DNA_lamp_types.h +++ b/source/blender/makesdna/DNA_lamp_types.h @@ -66,7 +66,7 @@ typedef struct Lamp { short pad2; float clipsta, clipend, shadspotsize; - float bias, soft, compressthresh, pad5[3]; + float bias, soft, compressthresh, bleedbias, pad5[2]; short bufsize, samp, buffers, filtertype; char bufflag, buftype; @@ -76,7 +76,7 @@ typedef struct Lamp { float area_size, area_sizey, area_sizez; float adapt_thresh; short ray_samp_method; - short pad1; + short shadowmap_type; /* texact is for buttons */ short texact, shadhalostep; @@ -96,8 +96,9 @@ typedef struct Lamp { float atm_distance_factor; float skyblendfac; float sky_exposure; + float shadow_frustum_size; /* BGE Only */ short sky_colorspace; - char pad4[6]; + char pad4[2]; struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */ struct MTex *mtex[18]; /* MAX_MTEX */ @@ -205,6 +206,9 @@ typedef struct Lamp { #define LAMAP_COL 1 #define LAMAP_SHAD 2 +/* shadowmap_type */ +#define LA_SHADMAP_SIMPLE 0 +#define LA_SHADMAP_VARIANCE 1 #endif /* __DNA_LAMP_TYPES_H__ */ -- cgit v1.2.3