Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualKaiserJohan

Posted 16 April 2013 - 06:46 AM

Something like this then, for drawing one mesh?

 

 

glEnable (GL_BLEND);
glBlendFunc (GL_ONE, GL_ONE);

// udate uniform buffer with lights 1 to 8
DrawVAO();

// update uniform buffer with lights 9 to 16 and draw same vao again
DrawVAO();

glDisable (GL_BLEND);

 

 

?


#1KaiserJohan

Posted 16 April 2013 - 06:31 AM

Something like this then?

 

 

glEnable (GL_BLEND);
glBlendFunc (GL_ONE, GL_ONE);

// udate uniform buffer with lights 1 to 8
DrawVAO();

// update uniform buffer with lights 9 to 16 and draw same vao again
DrawVAO();

glDisable (GL_BLEND);

 

 

?


PARTNERS