Sergey Gonchar
Sergey Gonchar

Reputation: 31

Setting a SCNTechnique stops SCNSceneRendererDelegate

When I set a SCNTechnique to my SCNView, my SCNSceneRendererDelegate stops to work. Are there any workarounds? I want to execute some code before and after scene rendering. I've tried to reset the delegate, but it doesn't help.

Upvotes: 2

Views: 316

Answers (2)

fursund
fursund

Reputation: 71

To make this work I added:

"inputs" : {"color" : "COLOR" }

to the technique definition.

Upvotes: 0

James Hurlbut
James Hurlbut

Reputation: 11

You must use the scenekit COLOR output in a technique pass for the delegates to work

Upvotes: 1

Related Questions