Latest pointlight Activity

I solved the problem, my normals was incorrect
Hi guys!
I implemented a point light. It has a attenuation.
But I don't know this is good attenuation.
Also I'm not sure this is natural point light.
Please give me a feedback!
Thank you!
(BTW It doesn't have other effects like shadow)
You can also have a look at mapping spheres to 2D textures for single pass shadow-map rendering. Last time I checked it is also quite a bit faster than cube-map shadows.
What you get is basically an UV unwrap of the sphere onto a texture, which you then write your depth info to.
When you need to samp…
Advertisement
Advertisement
Advertisement