Skip to main content
GameDev.net gamedev.net
🔒 Locked

lighting with glide

Started by Zeus Jul 28, 1999 at 5:13 PM 0 replies 2.6k views
Original Post
Zeus
Zeus
Hello

I´m trying to make a rendering engine which uses 'Glide' to show some objects.
This almost workes pretty good but there is still a problem.
To add some light I´m using the common algorithm to calculate the unit normal of a face then this vector is compared to the vector that comes from the light source to the object´s surface. Now the angle between these two vectors is calculated and the smaller the angle the 'more' the face is hit by the light. I´m not quite sure if this way
is the right one because sometimes it workes
and sometimes it doesn´t.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.