Skip to content

Commit

Permalink
toggle emission if emission texture is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchange committed Aug 24, 2024
1 parent f29ab7f commit daa199c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/material_maker/nodes/material.mmg
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,11 @@
" - _NORMALMAP",
" - _PARALLAXMAP",
" - _METALLICSPECGLOSSMAP",
"$if $(connected:emission_tex)",
" m_LightmapFlags: 0",
"$else",
" m_LightmapFlags: 4",
"$fi",
" m_EnableInstancingVariants: 0",
" m_DoubleSidedGI: 0",
" m_CustomRenderQueue: -1",
Expand Down

0 comments on commit daa199c

Please sign in to comment.