Guest User

Untitled

a guest
Feb 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. def update_render_passes(self, scene=None, renderlayer=None):
  2. self.register_pass(scene, renderlayer, "Combined", 4, "RGBA", 'COLOR')
  3.  
  4. aovs = scene.luxcore.aovs
  5.  
  6. if aovs.samplecount:
  7. self.register_pass(scene, renderlayer, "Samplecount", 1, "X", 'VALUE')
  8. if aovs.shading_normal:
  9. self.register_pass(scene, renderlayer, "Shading_Normal", 3, "XYZ", 'VECTOR')
  10.  
  11. # Note: the Depth pass is already added by Blender
  12. # If you add it again, it won't be displayed correctly
  13. # in the "Depth" view mode of the "Combined" pass
  14. # in the image editor.
  15.  
  16. aovs = scene.luxcore.aovs
  17.  
  18. if aovs.samplecount:
  19. self.add_pass("Samplecount", 1, "X")
  20. if aovs.shading_normal:
  21. self.add_pass("Shading_Normal", 3, "XYZ")
Add Comment
Please, Sign In to add comment