Reputation: 388
I am creating a game in cocos2d-x and want to create spotlight effect in it on my character. Is there any way to do it without using OpenGl? if not how can i do it with openGL?
Thanks in Advance
Upvotes: 0
Views: 1372
Reputation: 742
Check This out : in cocosx- 3.3 version they have already provided SpotLight Class .
http://jonimikkola.com/2014/11/creating-light-spot-shader-in-cocos2d-x-3-0/ http://www.cocos2d-x.org/reference/native-cpp/V3.3rc0/df/d72/classcocos2d_1_1_spot_light.html
Upvotes: 0
Reputation: 52
check this -
http://www.supersuraccoon-cocos2d.com/2011/09/09/spot-light-demo/
Upvotes: 1