laanlabs / SCNTechniqueGlow

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

So how can I apply various outlines to different objs? #4

Open chenzhutian opened 6 years ago

chenzhutian commented 6 years ago

Hi, thanks for your repo. So if I want to apply outlines with different colors to different objects, how can I achieve that? It seems that the technique will be applied to all the objects in the scene, which means I cannot set different glow color for different objects.

Many thanks.

cclaan commented 6 years ago

Ya that's not possible with the current code. Only objects with the category bit mask set will be highlighted. You could add more rendering passes for each glow color and then combine them. It might be possible to do multiple glow colors in one pass, but that would take some thinking. Check out this blog post for some technique examples: http://blog.simonrodriguez.fr/articles/26-08-2015_a_few_scntechnique_examples.html

chenzhutian commented 6 years ago

thanks a lot!

arturdev commented 3 years ago

Did anyone find any solution so far?