Nice! That actually worked pretty good. http://imgur.com/bOTZRZT
Is there no significant performance hit for raising the distance so high? I set mine to 1000 before it almost completely got rid of the fade away. It seems fine, but I'm on a slow computer now.
Thanks for the quick answer, and excellent job on the library. It's quite a nice piece of work.
If anyone else wants to do this, here is the code I used:
@handler = RayHandler.new(world)
RayHandler.isDiffuse = true
@central_light = PointLight.new(@handler, 400)
@central_light.soft = true
@central_light.softness_length = 1.2
@central_light.color = Color.new(0.80, 0.80, 0.80, 1.0)
@central_light.distance = 1000
Each ray cast will cost some amount more. If this is gonna be problem just modify the shader to output white.