Skip to content

Commit

Permalink
Fix power to radiance conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dvicini committed Jul 15, 2024
1 parent 5a12add commit 175dfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mitsuba-blender/io/exporter/lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def convert_area_light(b_light, export_ctx):
emitter = {
'type': 'area'
}
# Conversion factor used in Cycles, to convert to irradiance (don't ask me why)
conv_fac = 1.0 / (area * 4.0)
# Conversion factor to convert power to radiance.
conv_fac = 1.0 / (area * np.pi)
emitter['radiance'] = export_ctx.spectrum(conv_fac * b_light.data.energy * b_light.data.color)
params['emitter'] = emitter

Expand Down

0 comments on commit 175dfd7

Please sign in to comment.