latest revision to date as far as calcs goes, and glsl version for those following the beamng opengl branch (the hlsl would need to be merged, while the glsl would be dormant for now)