ok so i have been making a really simple polygon render for love (it's for a game) and i have the 3D part down but i want to add lighting to the faces of the polygons. i haven't been able to find any reading martial on it which is frustrating. i know Jasoco did it here http://love2d.org/forums/viewtopic.php? ... 9&start=50. i just want something to read on how to do it. preferably face lighting as apposed to vertex lighting but i would not be apposed to vertex lighting either.
edit: he also got shadows to show up, might anyone have any reading material on this?
edit2: i think i found a good lighting method, Lambertian reflectance http://en.wikipedia.org/wiki/Lambertian_reflectance. it's flat shading technique and it's pretty simple to implement, find the normal of a face and take the dot product of it and the light vector, simple
poly face lighting?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Who is online
Users browsing this forum: No registered users and 223 guests