Point density: Add utility function to sample density outside of render pipeline

Not currently used, it's a preparation for the further work.

Should not be functional changes.
This commit is contained in:
2015-07-18 21:42:39 +02:00
parent 92a37993a5
commit 2f15a1f66e
3 changed files with 138 additions and 3 deletions

View File

@@ -59,6 +59,12 @@ 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);
/* pointdensity.c */
struct PointDensity;
void RE_sample_point_density(struct Scene *scene, struct PointDensity *pd, int resolution, float *values);
void RE_init_texture_rng(void);
void RE_exit_texture_rng(void);
#endif /* __RE_RENDER_EXT_H__ */