As many of you know i have been working on tube lighting for the past week but i have hit a roadblock that i cant seam to solve so i have decided its time to ask for help of fixing this issue. For tube lights i am following epics PBR paper http://blog.selfshadow.com/publications/s2013-shading-course/karis/s2013_pbs_epic_notes_v2.pdf. But currently all tube lights act the same as sphere lights with both the radius and length changing the size of the sphere.
All the source code for the area lighting can be found on my fork on urho https://github.com/dragonCASTjosh/Urho3D/blob/master/bin/CoreData/Shaders/HLSL/PBR.hlsl