SceneKit - Eight light sources per node

Is it possible to have more than 8 light sources?


i.e If i wanted to have 10 spot lights in my scene? - the fact that it mentions per node makes me wonder if there is a way around it?


I'm running my scene with 10 spotlights added to the root node, but not all 10 are lit...

Breaking up my floor into multiple SCNNodes fixed the problem.

Although this initally looked like it fixed the problem, the scene would crash when four lights would hit the same node at the same time with the following error.


Assertion failed: (offset < C3D_MAX_LIGHTS * maxSizePerLight), function -[SCNRenderContextMetal _uploadLightingSetBuffer:], file /Library/Caches/com.apple.xbs/Sources/SceneKit/SceneKit-332.8/sources/Core3DRuntime/NewRenderer/SCNRenderContextMetal.mm, line 1222.

I'm assuming offset is the number of lights, C3D_MAX_LIGHTS is probably 8, but what is maxSizePerLight? It seems very limiting.

SceneKit - Eight light sources per node
 
 
Q