From 3177c4f69fcb53c2aad744ee951ea60d98a77c86 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 5 Dec 2006 16:43:01 +0000 Subject: Next stage of RenderPipe refactor: now everything within the pixel was tackled. Resulting features: - render passes - new pass: Object Index, for masking - sub-sample alpha masks Docs: http://mediawiki.blender.org/index.php/BlenderDev/RenderPipeline http://www.blender3d.org/cms/Render_Passes.829.0.html http://www.blender3d.org/cms/New_Render_features.774.0.html Note that these changes might mean things to not render fully identical... For the next days a lot of testing is needed! --- source/blender/render/intern/include/render_types.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'source/blender/render/intern/include/render_types.h') diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h index 3ac56e73099..77beb446c86 100644 --- a/source/blender/render/intern/include/render_types.h +++ b/source/blender/render/intern/include/render_types.h @@ -253,9 +253,8 @@ typedef struct RadFace { int flag; } RadFace; -typedef struct VlakRen -{ - struct VertRen *v1, *v2, *v3, *v4; +typedef struct VlakRen { + struct VertRen *v1, *v2, *v3, *v4; /* keep in order for ** addressing */ unsigned int lay; float n[3]; struct Material *mat; @@ -290,8 +289,12 @@ struct MTex; * For each lamp in a scene, a LampRen is created. It determines the * properties of a lightsource. */ -typedef struct LampRen -{ + +typedef struct LampShadowSample { + float shadfac[16][4]; /* 16 = RE_MAX_OSA, 4 = rgba */ +} LampShadowSample; + +typedef struct LampRen { float xs, ys, dist; float co[3]; short type, mode; @@ -340,6 +343,10 @@ typedef struct LampRen float mat[3][3]; /* 3x3 part from lampmat x viewmat */ 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]; + /* yafray: photonlight params */ int YF_numphotons, YF_numsearch; short YF_phdepth, YF_useqmc, YF_bufsize; -- cgit v1.2.3