Blender V2.61 - r43446
Typedefs | Functions

sss.h File Reference

Go to the source code of this file.

Typedefs

typedef struct ScatterSettings ScatterSettings
typedef struct ScatterTree ScatterTree

Functions

ScatterSettingsscatter_settings_new (float refl, float radius, float ior, float reflfac, float frontweight, float backweight)
void scatter_settings_free (ScatterSettings *ss)
ScatterTreescatter_tree_new (ScatterSettings *ss[3], float scale, float error, float(*co)[3], float(*color)[3], float *area, int totpoint)
void scatter_tree_build (ScatterTree *tree)
void scatter_tree_sample (ScatterTree *tree, float *co, float *color)
void scatter_tree_free (ScatterTree *tree)
void make_sss_tree (struct Render *re)
void sss_add_points (Render *re, float(*co)[3], float(*color)[3], float *area, int totpoint)
void free_sss (struct Render *re)
int sample_sss (struct Render *re, struct Material *mat, float *co, float *col)
int sss_pass_done (struct Render *re, struct Material *mat)

Detailed Description

Definition in file sss.h.


Typedef Documentation

Definition at line 39 of file sss.h.

typedef struct ScatterTree ScatterTree

Definition at line 42 of file sss.h.


Function Documentation

void free_sss ( struct Render re)
void make_sss_tree ( struct Render re)
int sample_sss ( struct Render re,
struct Material mat,
float *  co,
float *  col 
)

Definition at line 1032 of file sss.c.

References BLI_ghash_lookup(), scatter_tree_sample(), Render::sss_hash, and SSSData::tree.

Referenced by shade_lamp_loop().

void scatter_settings_free ( ScatterSettings ss)

Definition at line 338 of file sss.c.

References MEM_freeN(), ScatterSettings::tableRd, and ScatterSettings::tableRd2.

Referenced by sss_free_tree().

ScatterSettings* scatter_settings_new ( float  refl,
float  radius,
float  ior,
float  reflfac,
float  frontweight,
float  backweight 
)
void scatter_tree_build ( ScatterTree tree)
void scatter_tree_free ( ScatterTree tree)
ScatterTree* scatter_tree_new ( ScatterSettings ss[3],
float  scale,
float  error,
float(*)  co[3],
float(*)  color[3],
float *  area,
int  totpoint 
)
void scatter_tree_sample ( ScatterTree tree,
float *  co,
float *  color 
)

Definition at line 817 of file sss.c.

References compute_radiance(), copy_v3_v3(), mul_v3_fl(), and ScatterTree::scale.

Referenced by sample_sss().

void sss_add_points ( Render re,
float(*)  co[3],
float(*)  color[3],
float *  area,
int  totpoint 
)
int sss_pass_done ( struct Render re,
struct Material mat 
)

Definition at line 1051 of file sss.c.

References BLI_ghash_lookup(), Render::flag, RenderData::mode, Render::r, R_BAKING, R_SSS, and Render::sss_hash.

Referenced by shade_lamp_loop().