WIP: Support more AOVs #72

Closed
Georgiy Markelov wants to merge 6 commits from DagerD/blender:BLEN-461 into hydra-render

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 1dfe4dd90f - Show all commits

View File

@ -31,6 +31,10 @@ class CustomHydraRenderEngine(HydraRenderEngine):
'enableTinyPrimCulling': True,
'maxLights': 8,
}
def update_render_passes(self, scene, render_layer):
if render_layer.use_pass_z:
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')
```
"""
@ -142,12 +146,8 @@ class HydraRenderEngine(bpy.types.RenderEngine):
_bpy_hydra.engine_view_draw(self.engine_ptr, depsgraph.as_pointer(), context.as_pointer())
def update_render_passes(self, scene, render_layer):
if render_layer.use_pass_z:
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')
if render_layer.use_pass_normal:
self.register_pass(scene, render_layer, 'Normal', 3, 'XYZ', 'VECTOR')
if render_layer.use_pass_position:
self.register_pass(scene, render_layer, 'Position', 4, 'XYZA', 'VECTOR')
""" Register supported AOVs for render. Must be overridden in child classes. """
pass
def export_mtlx(material):