Dynamic Paint:

* Some changes and cleanup pointed on the codereview.
This commit is contained in:
2011-10-22 16:16:14 +00:00
parent 8be3249537
commit 30cba27987
18 changed files with 475 additions and 588 deletions

View File

@@ -50,6 +50,7 @@ struct RNode;
struct Render;
struct MTex;
struct ImBuf;
struct DerivedMesh;
// RADIO REMOVED, Maybe this will be useful later
//void RE_zbufferall_radio(struct RadView *vw, struct RNode **rg_elem, int rg_totelem, struct Render *re);
@@ -65,5 +66,11 @@ float texture_value_blend(float tex, float out, float fact, float facg, int blen
void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float *result);
void antialias_tagbuf(int xsize, int ysize, char *rectmove);
/* dynamicpaint.c */
struct Material *RE_init_sample_material(struct Material *orig_mat, struct Scene *scene);
void RE_free_sample_material(struct Material *mat);
void RE_sample_material_color(struct Material *mat, float color[3], float *alpha, const float volume_co[3], const float surface_co[3],
int face_index, short hit_quad, struct DerivedMesh *orcoDm, struct Object *ob);
#endif /* RE_RENDER_EXT_H */