laanlabs / SCNTechniqueGlow

Basic object glowing outline using SCNTechnique
MIT License
82 stars 12 forks source link

crashing when opacity is set < 1 on a SCNNode #9

Open wave-electron opened 6 years ago

wave-electron commented 6 years ago

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 commented 6 years ago

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.

laanlabs commented 6 years ago

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.