>> How is it possible to do that?
>
>> (I'm not denying that games do it - they obviously do - I'm curios as to
>> how it's possible to do this given that the GPU only knows about
>> polygons and texture mapping.)
>
> The GPU also knows about vertex normals and can interpolate them and
> calculate the lighting of the surface according to the normal. In a similar
> way as POV-Ray does.
>
> Nowadays you can even write a shader which calculates the lighting from
> the normal vector and positions of light sources in special ways, if you
> want.
I was more puzzled as to how you compute shadows.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|