World: mistIntensity

mistIntensity
  • Get/set the minimum mist intensity

Type:
  • float number
Range:
  • 0.00 to 1.00
Mist Intensity setting in Blender 3D
  • Properties menu >> World >> Mist >> Minimum Intensity
Sample Code

################  get the mist intensity

# import bge module
import bge

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

# get the world module
wrld = scene.world

# get the mist intensity
mist_intensity = wrld.mistIntensity

Sample Code

################  set the mist intensity

# import bge module
import bge

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

# get the world module
wrld = scene.world

# set the mist intensity to 0
wrld.mistIntensity = 0.00