diff options
author | Matt Ebb <matt@mke3.net> | 2009-08-20 12:18:54 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-08-20 12:18:54 +0400 |
commit | d8cd7a22e815afd49dfb96197ed3ecd670dc8f11 (patch) | |
tree | 99881c2803d2262a5b7babb78bb1191fdedb772a /source/blender/render/intern | |
parent | fa5838c7be5a3eb64df90d5cc17f15ed997743ba (diff) |
* a few more small cleanups
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/include/texture.h | 1 | ||||
-rw-r--r-- | source/blender/render/intern/include/volumetric.h | 2 | ||||
-rw-r--r-- | source/blender/render/intern/source/pointdensity.c | 4 |
3 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/render/intern/include/texture.h b/source/blender/render/intern/include/texture.h index c254b768292..78d6a912af1 100644 --- a/source/blender/render/intern/include/texture.h +++ b/source/blender/render/intern/include/texture.h @@ -56,6 +56,7 @@ void do_halo_tex(struct HaloRen *har, float xn, float yn, float *colf); void do_sky_tex(float *rco, float *lo, float *dxyview, float *hor, float *zen, float *blend, int skyflag, short thread); void do_material_tex(struct ShadeInput *shi); void do_lamp_tex(LampRen *la, float *lavec, struct ShadeInput *shi, float *colf, int effect); +void do_volume_tex(struct ShadeInput *shi, float *xyz, int mapto_flag, float *col, float *val); void init_render_textures(Render *re); void end_render_textures(void); diff --git a/source/blender/render/intern/include/volumetric.h b/source/blender/render/intern/include/volumetric.h index 40d79e8d173..543e179bc88 100644 --- a/source/blender/render/intern/include/volumetric.h +++ b/source/blender/render/intern/include/volumetric.h @@ -28,7 +28,7 @@ float vol_get_stepsize(struct ShadeInput *shi, int context); float vol_get_density(struct ShadeInput *shi, float *co); -void vol_get_scattering(ShadeInput *shi, float *scatter, float *co, float stepsize, float density); +void vol_get_scattering(ShadeInput *shi, float *scatter_col, float *co, float stepsize, float density); void shade_volume_outside(ShadeInput *shi, ShadeResult *shr); void shade_volume_inside(ShadeInput *shi, ShadeResult *shr); diff --git a/source/blender/render/intern/source/pointdensity.c b/source/blender/render/intern/source/pointdensity.c index 9a9e3de7247..fbc39b61257 100644 --- a/source/blender/render/intern/source/pointdensity.c +++ b/source/blender/render/intern/source/pointdensity.c @@ -227,10 +227,8 @@ static void cache_pointdensity(Render *re, Tex *tex) } if (pd->source == TEX_PD_PSYS) { - ParticleSystem *psys; Object *ob = pd->object; - int i; - + if (!ob) return; if (!pd->psys) return; |