forked from bartvdbraak/blender
Code cleanup, unused variables and comments.
This commit is contained in:
parent
14be4b506a
commit
abec198665
@ -605,7 +605,6 @@ ccl_device_inline bool bvh_cardinal_curve_intersect(KernelGlobals *kg, Intersect
|
|||||||
isect->type = type;
|
isect->type = type;
|
||||||
isect->u = u;
|
isect->u = u;
|
||||||
isect->v = gd;
|
isect->v = gd;
|
||||||
/*isect->transparency = 1.0f - coverage; */
|
|
||||||
isect->t = t;
|
isect->t = t;
|
||||||
hit = true;
|
hit = true;
|
||||||
}
|
}
|
||||||
@ -841,7 +840,6 @@ ccl_device_inline bool bvh_curve_intersect(KernelGlobals *kg, Intersection *isec
|
|||||||
isect->type = type;
|
isect->type = type;
|
||||||
isect->u = z*invl;
|
isect->u = z*invl;
|
||||||
isect->v = gd;
|
isect->v = gd;
|
||||||
/*isect->transparency = 1.0f - adjradius;*/
|
|
||||||
isect->t = t;
|
isect->t = t;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -1012,10 +1010,6 @@ ccl_device_inline float3 bvh_curve_refine(KernelGlobals *kg, ShaderData *sd, con
|
|||||||
sd->dPdv = cross(tg, sd->Ng);
|
sd->dPdv = cross(tg, sd->Ng);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*add fading parameter for minimum pixel width with transparency bsdf*/
|
|
||||||
/*sd->curve_transparency = isect->transparency;*/
|
|
||||||
/*sd->curve_radius = sd->u * gd * l + r1;*/
|
|
||||||
|
|
||||||
if(isect->object != OBJECT_NONE) {
|
if(isect->object != OBJECT_NONE) {
|
||||||
#ifdef __OBJECT_MOTION__
|
#ifdef __OBJECT_MOTION__
|
||||||
Transform tfm = sd->ob_tfm;
|
Transform tfm = sd->ob_tfm;
|
||||||
|
Loading…
Reference in New Issue
Block a user