remove unused vol_get_density() call.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Oct 2010 14:53:13 +0000 (14:53 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Oct 2010 14:53:13 +0000 (14:53 +0000)
source/blender/render/intern/source/volumetric.c

index a58d96736d51f0539f0f8f0a12f6022cd255a354..d15ea0c792ce0a96d2116af52dd158b89f24f489 100644 (file)
@@ -743,7 +743,6 @@ void shade_volume_shadow(struct ShadeInput *shi, struct ShadeResult *shr, struct
        float tr[3] = {1.0,1.0,1.0};
        Isect is;
        float *startco, *endco;
-       float density=0.f;
 
        memset(shr, 0, sizeof(ShadeResult));
        
@@ -764,8 +763,7 @@ void shade_volume_shadow(struct ShadeInput *shi, struct ShadeResult *shr, struct
                shr->alpha = shr->combined[3] = 1.f;
                return;
        }
-       
-       density = vol_get_density(shi, startco);
+
        vol_get_transmittance(shi, tr, startco, endco);
        
        copy_v3_v3(shr->combined, tr);