Eevee: Move volumetric to its own panel, new settings to come
This commit is contained in:
@@ -631,7 +631,6 @@ class RENDER_PT_eevee_poststack_settings(RenderButtonsPanel, Panel):
|
||||
props = scene.layer_properties['BLENDER_EEVEE']
|
||||
|
||||
col = layout.column()
|
||||
col.prop(props, "volumetric_enable")
|
||||
col.prop(props, "gtao_enable")
|
||||
col.prop(props, "motion_blur_enable")
|
||||
col.prop(props, "dof_enable")
|
||||
@@ -678,6 +677,30 @@ class RENDER_PT_eevee_postprocess_settings(RenderButtonsPanel, Panel):
|
||||
col.prop(props, "bloom_intensity")
|
||||
|
||||
|
||||
class RENDER_PT_eevee_volumetric(RenderButtonsPanel, Panel):
|
||||
bl_label = "Volumetric"
|
||||
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
scene = context.scene
|
||||
return scene and (scene.render.engine in cls.COMPAT_ENGINES)
|
||||
|
||||
def draw_header(self, context):
|
||||
scene = context.scene
|
||||
props = scene.layer_properties['BLENDER_EEVEE']
|
||||
self.layout.prop(props, "volumetric_enable", text="")
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
scene = context.scene
|
||||
props = scene.layer_properties['BLENDER_EEVEE']
|
||||
|
||||
layout.active = props.volumetric_enable
|
||||
col = layout.column()
|
||||
# to be completed
|
||||
|
||||
|
||||
classes = (
|
||||
RENDER_MT_presets,
|
||||
RENDER_MT_ffmpeg_presets,
|
||||
@@ -697,6 +720,7 @@ classes = (
|
||||
RENDER_PT_clay_collection_settings,
|
||||
RENDER_PT_eevee_poststack_settings,
|
||||
RENDER_PT_eevee_postprocess_settings,
|
||||
RENDER_PT_eevee_volumetric,
|
||||
)
|
||||
|
||||
if __name__ == "__main__": # only for live edit.
|
||||
|
||||
Reference in New Issue
Block a user