Blender V2.61 - r43446
Classes | Typedefs | Functions

shadbuf.h File Reference

#include "render_types.h"

Go to the source code of this file.

Classes

struct  ISBSample
struct  ISBSampleA
struct  ISBShadfacA
struct  ISBData

Typedefs

typedef struct ISBSample ISBSample
typedef struct ISBSampleA ISBSampleA
typedef struct ISBShadfacA ISBShadfacA
typedef struct ISBData ISBData

Functions

void makeshadowbuf (struct Render *re, LampRen *lar)
void freeshadowbuf (struct LampRen *lar)
void threaded_makeshadowbufs (struct Render *re)
float testshadowbuf (struct Render *re, struct ShadBuf *shb, const float rco[3], const float dxco[3], const float dyco[3], float inp, float mat_bias)
float shadow_halo (LampRen *lar, const float p1[3], const float p2[3])
void ISB_create (RenderPart *pa, struct APixstr *apixbuf)
void ISB_free (RenderPart *pa)
float ISB_getshadow (ShadeInput *shi, ShadBuf *shb)

Detailed Description

Definition in file shadbuf.h.


Typedef Documentation

typedef struct ISBData ISBData
typedef struct ISBSample ISBSample
typedef struct ISBSampleA ISBSampleA
typedef struct ISBShadfacA ISBShadfacA

Function Documentation

void freeshadowbuf ( struct LampRen lar)
void ISB_create ( RenderPart pa,
struct APixstr apixbuf 
)
void ISB_free ( RenderPart pa)
float ISB_getshadow ( ShadeInput shi,
ShadBuf shb 
)
void makeshadowbuf ( struct Render re,
LampRen lar 
)
float shadow_halo ( LampRen lar,
const float  p1[3],
const float  p2[3] 
)

Determines the shadow factor for lamp <lar>, between <p1> and <p2>. (Which CS?)

Definition at line 1294 of file shadbuf.c.

References ShadBuf::buffers, co, ListBase::first, MIN2, mul_m4_v4(), ShadSampleBuf::next, readshadowbuf_halo(), LampRen::sh_zfac, ShadBuf::shadhalostep, LampRen::shb, ShadBuf::size, ShadBuf::totbuf, and ShadBuf::winmat.

Referenced by spothalo().

float testshadowbuf ( struct Render re,
struct ShadBuf shb,
const float  rco[3],
const float  dxco[3],
const float  dyco[3],
float  inp,
float  mat_bias 
)

Determines the shadow factor for a face and lamp. There is some communication with global variables here.

Returns:
The shadow factors: 1.0 for no shadow, 0.0 for complete shadow.
Parameters:
shbThe shadowbuffer to find the shadow factor in.
inpThe inproduct between viewvector and ?

Definition at line 1118 of file shadbuf.c.

References add_v3_v3v3(), ShadBuf::bias, ShadBuf::buffers, fabs(), ListBase::first, firstreadshadbuf(), get_render_shadow_samples(), jit, ShadBuf::jit, ShadSampleBuf::next, NULL, Render::r, readshadowbuf(), ShadBuf::samp, shadowbuf_project_co(), ShadBuf::soft, ShadBuf::totbuf, and ShadBuf::weight.

Referenced by lamp_get_shadow(), render_lighting_halo(), and vol_get_shadow().

void threaded_makeshadowbufs ( struct Render re)