fixed texture loading
Merge branch 'master' of https://github.com/weaondara/SWEJNR.git
Merge branch 'master' of https://github.com/weaondara/SWEJNR.git
Merge branch 'master' of https://github.com/weaondara/SWEJNR.git
Merge branch 'master' of https://github.com/weaondara/SWEJNR.git
added distance function