forked from blender/blender-addons
Refactoring of Storm Hydra render addon #13
@ -29,12 +29,12 @@ class RenderSettings(bpy.types.PropertyGroup):
|
||||
default=False,
|
||||
)
|
||||
volume_raymarching_step_size: bpy.props.FloatProperty(
|
||||
name="Step Size",
|
||||
name="Volume Raymarching Step Size",
|
||||
DagerD marked this conversation as resolved
Outdated
|
||||
description="Step size when raymarching volume",
|
||||
default=1.0,
|
||||
)
|
||||
volume_raymarching_step_size_lighting: bpy.props.FloatProperty(
|
||||
name="Step Size Lighting",
|
||||
name="Volume Raymarching Step Size Lighting",
|
||||
DagerD marked this conversation as resolved
Outdated
Brian Savery (AMD)
commented
Same as above. Same as above.
|
||||
description="Step size when raymarching volume for lighting computation",
|
||||
default=10.0,
|
||||
)
|
||||
|
@ -58,8 +58,8 @@ class STORM_HYDRA_RENDER_PT_volume_final(FinalPanel):
|
||||
settings = self.settings(context)
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(settings, "volume_raymarching_step_size")
|
||||
col.prop(settings, "volume_raymarching_step_size_lighting")
|
||||
col.prop(settings, "volume_raymarching_step_size", text="Step Size")
|
||||
col.prop(settings, "volume_raymarching_step_size_lighting", text="Step Size Lightning")
|
||||
col.prop(settings, "volume_max_texture_memory_per_field")
|
||||
|
||||
|
||||
@ -102,8 +102,8 @@ class STORM_HYDRA_RENDER_PT_volume_viewport(ViewportPanel):
|
||||
settings = self.settings(context)
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(settings, "volume_raymarching_step_size")
|
||||
col.prop(settings, "volume_raymarching_step_size_lighting")
|
||||
col.prop(settings, "volume_raymarching_step_size", text="Step Size")
|
||||
col.prop(settings, "volume_raymarching_step_size_lighting", text="Step Size Lightning")
|
||||
col.prop(settings, "volume_max_texture_memory_per_field")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
I prefer the original name "Step size" is too generic.
I renamed it because it better fits UI. Long names are not good.
Agree, please use original name here. In UI change text as you want:
layout.prop(settings, 'volume_raymarching_step_size', text="Step Size")
Fixed.