SCNTechniqueGlow icon indicating copy to clipboard operation
SCNTechniqueGlow copied to clipboard

crashing when opacity is set < 1 on a SCNNode

Open wave-electron opened this issue 7 years ago • 2 comments

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].

wave-electron avatar Jun 09 '18 13:06 wave-electron

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.

wave-electron avatar Jun 09 '18 14:06 wave-electron

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.

laanlabs avatar Jun 14 '18 20:06 laanlabs