Light: shadowMapType

shadowMapType
  • Returns the Buffer Type being used for the shadow map

Return Type: 
  • integer
Values:
  • 0 = Simple Buffer Type
     
  • 1 = Variance Buffer Type
Shadows work with Spot and Sun lamps
  • Properties menu >> Object Data  >> Shadow checkbox
Shadow Map Buffer Type in Blender 3D
  • Properties menu >> Object Data >> Shadow >> Buffer Type
Sample Code

################## get the shadow map buffer type
 
# 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 map buffer type
shadow_Buffer = light.shadowMapType