VDM brush baker #104580
@ -61,6 +61,10 @@ class vdm_brush_baker_addon_data(bpy.types.PropertyGroup):
|
|||||||
default='16',
|
default='16',
|
||||||
name='Color depth',
|
name='Color depth',
|
||||||
description='A color depth of 32 can give better results but leads to far bigger file sizes. 16 should be good if the sculpt doesn\'t extend "too far" from the original plane')
|
description='A color depth of 32 can give better results but leads to far bigger file sizes. 16 should be good if the sculpt doesn\'t extend "too far" from the original plane')
|
||||||
|
render_samples: bpy.props.IntProperty(name='Render samples',
|
||||||
|
default=64,
|
||||||
|
min=2,
|
||||||
|
max=4096)
|
||||||
|
|
||||||
|
|
||||||
def get_addon_data() -> vdm_brush_baker_addon_data:
|
def get_addon_data() -> vdm_brush_baker_addon_data:
|
||||||
@ -211,7 +215,7 @@ class create_vdm_brush(bpy.types.Operator):
|
|||||||
try:
|
try:
|
||||||
# Prepare baking
|
# Prepare baking
|
||||||
scene.render.engine = 'CYCLES'
|
scene.render.engine = 'CYCLES'
|
||||||
scene.cycles.samples = 2
|
scene.cycles.samples = addon_data.render_samples
|
||||||
scene.cycles.use_denoising = False
|
scene.cycles.use_denoising = False
|
||||||
scene.cycles.device = 'GPU'
|
scene.cycles.device = 'GPU'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user