Render control feature: shader-level shadowbuffer bias
[blender.git] / source / blender / render / intern / source / pixelshading.c
index a1088d1a920b2437cf65efeec54353194e8b7113..4e589789412c555f486504a54688a55e9691bee5 100644 (file)
@@ -182,7 +182,7 @@ static void render_lighting_halo(HaloRen *har, float *colf)
                                        inp= vn[0]*lv[0] + vn[1]*lv[1] + vn[2]*lv[2];
                                        if(inp>0.0) {
                                                /* testshadowbuf==0.0 : 100% shadow */
-                                               shadfac = testshadowbuf(lar->shb, rco, dco, dco, inp);
+                                               shadfac = testshadowbuf(lar->shb, rco, dco, dco, inp, 0.0f);
                                                if( shadfac>0.0 ) {
                                                        shadfac*= inp*soft*lar->energy;
                                                        ir -= shadfac;
@@ -219,7 +219,7 @@ static void render_lighting_halo(HaloRen *har, float *colf)
                if(i> -0.41) {                  /* heuristic valua! */
                        shadfac= 1.0;
                        if(lar->shb) {
-                               shadfac = testshadowbuf(lar->shb, rco, dco, dco, inp);
+                               shadfac = testshadowbuf(lar->shb, rco, dco, dco, inp, 0.0f);
                                if(shadfac==0.0) continue;
                                i*= shadfac;
                        }