forked from blender/blender-addons
Support more AOVs #23
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user