Light source color temperature
Posted: Mon Sep 21, 2020 11:23 am
I added the support to all light sources of ".temperature" and ".temperature.normalize" properties to set light color temperature. For instance:
It works also for material emission:
Note: this makes also the use of blackbody texture not necessary.
See viewtopic.php?f=4&t=2586 to check where this is all coming from.
Code: Select all
scene.lights.l1.type = point
scene.lights.l1.position = -3.0 -5.0 4
scene.lights.l1.gain = 500 500 500
# Set the light source color temperature, if set to -1, disable it
scene.lights.l1.temperature = 8000
scene.lights.l1.temperature.normalize = 0
Code: Select all
scene.materials.whitelight.type = matte
scene.materials.whitelight.kd = 0.0 0.0 0.0
scene.materials.whitelight.emission = 1 1 1
scene.materials.whitelight.emission.gain = 10 10 10
# Set the light source color temperature, if set to -1, disable it
scene.materials.whitelight.emission.temperature = 8000
scene.materials.whitelight.emission.temperature.normalize = 0
See viewtopic.php?f=4&t=2586 to check where this is all coming from.