Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualMedo3337

Posted 25 May 2013 - 11:42 AM

Any examples for point and spot lights using shader?

 

I want to be able to set the light by giving its position and color to the Shader, I mean (example):

effect->SetPosition(...); // Light position
effect->SetColor(...);   // Light color
// etc...

#1Medo3337

Posted 25 May 2013 - 09:09 AM

Any examples for point and spot lights using shader?

 

I want to be able to set the light by giving its position and color to the Shader, I mean (example):

effect->SetPosition(...); // Light position
effect->SetCololr(...);   // Light color
// etc...

PARTNERS