Support more AOVs #23

Merged
Bogdan Nagirniak merged 4 commits from DagerD/blender-addons:BLEN-461 into storm-hydra-addon 2023-07-29 14:58:37 +02:00
Showing only changes of commit 491efd029b - Show all commits

View File

@ -20,7 +20,7 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
def get_render_settings(self, engine_type):
settings = bpy.context.scene.hydra_storm.viewport if engine_type == 'VIEWPORT' else \
bpy.context.scene.hydra_storm.final
return {
result = {
'enableTinyPrimCulling': settings.enable_tiny_prim_culling,
'volumeRaymarchingStepSize': settings.volume_raymarching_step_size,
'volumeRaymarchingStepSizeLighting': settings.volume_raymarching_step_size_lighting,
@ -28,6 +28,14 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
'maxLights': settings.max_lights,
}
if engine_type == 'FINAL':
result |= {
'aov:Combined': "color",
'aov:Depth': "depth",
}
return result
def update_render_passes(self, scene, render_layer):
if render_layer.use_pass_z:
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')