SCNTechniqueGlow
SCNTechniqueGlow copied to clipboard
crashing when opacity is set < 1 on a SCNNode
I've noticed any SCNNodes that have opacity levels set below 1 (alpha channel) ..... causes the following crash in the xcode debugger.
validateFunctionArguments:3332: failed assertion `Fragment Function(commonprofile_frag): missing buffer binding at index 2 for scn_lights[0].
Its happening because I have incorporated a second light which castShadows. If I set castShadows = false for the second light . It doesn't crash anymore & works as normal.
Interesting, thanks for posting. I'm not sure why that happens. Feel free to add some optional lights and shadows to the sample via a PR. At some point I can have a look at the crash.