Here is a description of what I want to set up:
"Imagine a cardboard box with a point of light at it's centre, the (boundaries) sides of the box set the limiting distance and overall volume of space that particular light can influence; anything contained in that box will receive light from the entity at the centre, the closer the brighter."
It seems pretty easy but i can't figure out how to implement it (in a shader.)
Any help would be nice. Thanks.
Edited by Endemoniada, 18 December 2013 - 10:30 PM.