hi! im trying to make work a project i found here: http://www.supersuraccoon-cocos2d.com/2011/09/17/sticky-demo-resource-list-keep-updating/ . Project’s name is “GameLighting Demo”. But light in my project spreading in rect. I am noob in OpenGL ES 2.0 and cannot figure out what is wrong with my code. Maybe someone could help me to make spread light in circle. I just replaced Objective-C calls with equivalent c*+ methods and added to CCTexture2D class one method:
<pre>
void CCTexture2D::drawFlippedAtPoint
{
GLfloat coordinates = { point.x, point.y,
width* point.x, point.y,
point.x, height + point.y,
width + point.x, height + point.y };
hoho, I have fix it. There is two Shaders directory in this project, when I copy the one in “GameLighting” directory I got the issue as you. But today I copy the one in “GameLightingiOS” the issue gone.