Light: shadowBleedBias

shadowBleedBias
  • Returns the amount of blending of the light into the shadow edges with Variance Shadow Maps

Return Type: 
  • float number
Range:
  • 0.00 to 1.00
Shadows work with Spot and Sun lamps
  • Properties menu >> Object Data  >> Shadow checkbox

Shadow Bleed Bias works with Variance Shadow Maps

  • Properties menu >> Object Data >> Shadow >> Buffer Type >> Variance
Shadow Bleed Bias in Blender 3D
  • Properties menu >> Object Data >> Shadow >> Quality >> Bleed Bias
Sample Code

################## get the shadow bleed bias
 
# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the lights in the scene
lightList = scene.lights

# get the spotlight named Spot_Light
light = lightList["Spot_Light"]

# get shadow bleed bias
bias_Bleed = light.shadowBleedBias