Search found 1 match

by qwerber
Wed Nov 30, 2011 1:43 am
Forum: Game Development
Topic: 2D Dynamic Lighting Tutorial
Replies: 27
Views: 41472

Re: 2D Dynamic Lighting Tutorial

Err, I know this thread was from May, but I wanted to contribute something. Instead of using the trigonometric functions, you can simply extend the x and y distances between the light and the vertex you are computing. Maybe a little code will explain things: castedPoint->x = (light->x - vertex->x) *...