Render control feature: shader-level shadowbuffer bias
[blender.git] / source / blender / render / intern / source / shadeoutput.c
index 0823ae146f762ec8537f39a78faf2811d5c116a9..ca81d456487b9f355b2e6a991f0d00fbe5f7660c 100644 (file)
@@ -1054,7 +1054,7 @@ void lamp_get_shadow(LampRen *lar, ShadeInput *shi, float inp, float *shadfac, i
                        if(lar->buftype==LA_SHADBUF_IRREGULAR)
                                shadfac[3]= ISB_getshadow(shi, lar->shb);
                        else
-                               shadfac[3] = testshadowbuf(lar->shb, shi->co, shi->dxco, shi->dyco, inp);
+                               shadfac[3] = testshadowbuf(lar->shb, shi->co, shi->dxco, shi->dyco, inp, shi->mat->lbias);
                }
                else if(lar->mode & LA_SHAD_RAY) {
                        ray_shadow(shi, lar, shadfac);