forked from blender/blender
Support more AOVs #78
@ -28,6 +28,7 @@ class CustomHydraRenderEngine(bpy.types.HydraRenderEngine):
|
|||||||
return {
|
return {
|
||||||
'myBoolean': True,
|
'myBoolean': True,
|
||||||
'myValue': 8,
|
'myValue': 8,
|
||||||
|
'aovToken:Depth': "depth",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Settings used by the synchronization process.
|
# Settings used by the synchronization process.
|
||||||
@ -43,6 +44,11 @@ class CustomHydraRenderEngine(bpy.types.HydraRenderEngine):
|
|||||||
super().update(data, depsgraph)
|
super().update(data, depsgraph)
|
||||||
# Do extra work here
|
# Do extra work here
|
||||||
|
|
||||||
|
def update_render_passes(self, scene, render_layer):
|
||||||
|
if render_layer.use_pass_z:
|
||||||
|
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')
|
||||||
|
|
||||||
|
|
||||||
# Registration
|
# Registration
|
||||||
def register():
|
def register():
|
||||||
bpy.utils.register_class(CustomHydraRenderEngine)
|
bpy.utils.register_class(CustomHydraRenderEngine)
|
||||||
|
Loading…
Reference in New Issue
Block a user