Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualBornToCode

Posted 26 May 2013 - 06:50 PM

Mesh has a bounding sphere, light has a bounding sphere; do an intersection test -> if they intersect then the light effects it.

That will not work for Directional Lights. Just wanted to give my two cents on it.


#2BornToCode

Posted 26 May 2013 - 06:49 PM

Mesh has a bounding sphere, light has a bounding sphere; do an intersection test -> if they intersect then the light effects it.

That will not work for Directional Lights. Just wanted to give my two cents on it. In my engine the way i handle Directional light is i put them in a list and run them in the shader

and do regular Directional lighting with them and let the shader figure out if a vertex is affected by the light. As i have not find a better solution.


#1BornToCode

Posted 26 May 2013 - 06:45 PM

Mesh has a bounding sphere, light has a bounding sphere; do an intersection test -> if they intersect then the light effects it.

That will not work for Directional Lights. Just wanted to give my two cents on it.


PARTNERS