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):
|
def get_render_settings(self, engine_type):
|
||||||
settings = bpy.context.scene.hydra_storm.viewport if engine_type == 'VIEWPORT' else \
|
settings = bpy.context.scene.hydra_storm.viewport if engine_type == 'VIEWPORT' else \
|
||||||
bpy.context.scene.hydra_storm.final
|
bpy.context.scene.hydra_storm.final
|
||||||
return {
|
result = {
|
||||||
'enableTinyPrimCulling': settings.enable_tiny_prim_culling,
|
'enableTinyPrimCulling': settings.enable_tiny_prim_culling,
|
||||||
'volumeRaymarchingStepSize': settings.volume_raymarching_step_size,
|
'volumeRaymarchingStepSize': settings.volume_raymarching_step_size,
|
||||||
'volumeRaymarchingStepSizeLighting': settings.volume_raymarching_step_size_lighting,
|
'volumeRaymarchingStepSizeLighting': settings.volume_raymarching_step_size_lighting,
|
||||||
@ -28,6 +28,14 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
|
|||||||
'maxLights': settings.max_lights,
|
'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):
|
def update_render_passes(self, scene, render_layer):
|
||||||
if render_layer.use_pass_z:
|
if render_layer.use_pass_z:
|
||||||
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')
|
self.register_pass(scene, render_layer, 'Depth', 1, 'Z', 'VALUE')
|
||||||
|
Loading…
Reference in New Issue
Block a user