Workbench: World based studio lighting

Disabled shadows for now as the calculation of the light direction is
still to bogus.
This commit is contained in:
Jeroen Bakker
2018-05-16 16:42:30 +02:00
parent def1c3eb4b
commit e862bcd6c8
12 changed files with 254 additions and 64 deletions

View File

@@ -3510,14 +3510,17 @@ class VIEW3D_PT_shading(Panel):
col.row().prop(shading, "light", expand=True)
if shading.light == 'STUDIO':
col.row().template_icon_view(shading, "studio_light")
if shading.studio_light_orientation == 'WORLD':
col.row().prop(shading, "studiolight_rot_z")
col.separator()
row = col.row()
row.prop(shading, "show_shadows")
sub = row.row()
sub.active = shading.show_shadows
sub.prop(shading, "shadow_intensity", text="")
if not(shading.light == 'STUDIO' and shading.studio_light_orientation == 'WORLD'):
row = col.row()
row.prop(shading, "show_shadows")
sub = row.row()
sub.active = shading.show_shadows
sub.prop(shading, "shadow_intensity", text="")
col.prop(shading, "show_object_outline")