Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-10 22:23:11 +0300
committerTon Roosendaal <ton@blender.org>2006-01-10 22:23:11 +0300
commita0a3597b8b0d5be7a9161046cb1f8b4a60f44a35 (patch)
tree893dd340c435c7eac99011a551bf0002ed798cee /source/blender/render
parentdaca2eb7875fa5e301d6cdd7d432aefeec6274ae (diff)
Orange:
Accidentally didn't disable the tests I did for 'translucent raytrace', a cheapskate SSS method; http://www.blender.org/bf/rt.jpg http://www.blender.org/bf/rt1.jpg It slowed down render too much, was default on... but invisible! It needed the F10 buttons "rt" to be huge (600-1000)
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/rendercore.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/render/intern/source/rendercore.c b/source/blender/render/intern/source/rendercore.c
index 8f3a18fe75e..5ad6f4e84a9 100644
--- a/source/blender/render/intern/source/rendercore.c
+++ b/source/blender/render/intern/source/rendercore.c
@@ -1410,7 +1410,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
if(lar->shb) i = testshadowbuf(lar->shb, shi->co, shi->dxco, shi->dyco, inp);
else {
float shad[4];
- ray_shadow(shi, lar, shad);
+ //ray_shadow(shi, lar, shad);
i= shad[3];
}
@@ -1435,7 +1435,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
/* single sided? */
if( shi->facenor[0]*lv[0] + shi->facenor[1]*lv[1] + shi->facenor[2]*lv[2] > -0.01) {
- ray_shadow(shi, lar, shad);
+ //ray_shadow(shi, lar, shad);
shadfac[3]+= shad[3];
ir+= 1.0;
}
@@ -1709,7 +1709,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
shadfac[3] = testshadowbuf(lar->shb, shi->co, shi->dxco, shi->dyco, inp);
}
else if(lar->mode & LA_SHAD_RAY) {
- ray_shadow(shi, lar, shadfac);
+ //ray_shadow(shi, lar, shadfac);
}
/* warning, here it skips the loop */
@@ -1729,7 +1729,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
}
}
}
-
+#if 0
if(R.r.mode & R_RAYTRACE) {
extern void ray_translucent(ShadeInput *shi, LampRen *lar, float *distfac, float *co);
float co[3], distfac;
@@ -1744,7 +1744,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
shr->diff[2]+= distfac;
}
}
-
+#endif
/* specularity */
if(shadfac[3]>0.0 && shi->spec!=0.0 && !(lar->mode & LA_NO_SPEC)) {