KirilStrezikozin / BakeMaster-Blender-Addon

Welcome to BakeMaster, a powerful and feature-packed baking solution created for Blender - an open-source 3D Computer graphics software.
Other
34 stars 6 forks source link

BUG: World shader nodes are not muted (AddShader and MixShader nodes nuances) + change `Scene Lights` #82

Closed KirilStrezikozin closed 1 month ago

KirilStrezikozin commented 5 months ago

This bug report is:

Describe the bug I recently found out (when making progress on #73) that when muting Add Shader/ Mix Shader nodes, the first shader input doesn't get muted and gets through.

The way BakeMaster 'turns off' world lighting is by muting the first node after World Output, so for the setup below the world shader material is not black as it should be: image

To Reproduce Steps to reproduce the behavior:

  1. Set up a World Shader material similar to the one in the screenshot above.
  2. Bake two bakes: one with Scene lights unchecked and checked (this setting is in Decal settings)
  3. See that the one with unchecked Scene lights has world shader contribution when I shouldn't.

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.