mirror of https://github.com/AxioDL/metaforce.git
Add Ambient Occlusion to lightmap passes
This commit is contained in:
parent
8ed5a4c87b
commit
3d2ca429f7
|
@ -357,7 +357,7 @@ def render_lightmaps(context):
|
||||||
obj.data.uv_layers.active_index = 0
|
obj.data.uv_layers.active_index = 0
|
||||||
|
|
||||||
# Make lightmaps
|
# 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
|
# Lightmap render operator
|
||||||
class SREARenderLightmaps(bpy.types.Operator):
|
class SREARenderLightmaps(bpy.types.Operator):
|
||||||
|
|
Loading…
Reference in New Issue