Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update_render_passes(self, scene=None, renderlayer=None):
- self.register_pass(scene, renderlayer, "Combined", 4, "RGBA", 'COLOR')
- aovs = scene.luxcore.aovs
- if aovs.samplecount:
- self.register_pass(scene, renderlayer, "Samplecount", 1, "X", 'VALUE')
- if aovs.shading_normal:
- self.register_pass(scene, renderlayer, "Shading_Normal", 3, "XYZ", 'VECTOR')
- # Note: the Depth pass is already added by Blender
- # If you add it again, it won't be displayed correctly
- # in the "Depth" view mode of the "Combined" pass
- # in the image editor.
- aovs = scene.luxcore.aovs
- if aovs.samplecount:
- self.add_pass("Samplecount", 1, "X")
- if aovs.shading_normal:
- self.add_pass("Shading_Normal", 3, "XYZ")
Add Comment
Please, Sign In to add comment