Add Ambient Occlusion to lightmap passes

This commit is contained in:
Phillip Stephens 2021-02-07 18:56:41 -08:00
parent 8ed5a4c87b
commit 3d2ca429f7
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ def render_lightmaps(context):
obj.data.uv_layers.active_index = 0
# Make lightmaps
bpy.ops.object.bake('INVOKE_DEFAULT', type='DIFFUSE', pass_filter={'DIRECT', 'INDIRECT'})
bpy.ops.object.bake('INVOKE_DEFAULT', type='DIFFUSE', pass_filter={'AO', 'DIRECT', 'INDIRECT'})
# Lightmap render operator
class SREARenderLightmaps(bpy.types.Operator):