convert to a float:
[System.BitConverter.ToSingle()][1]/[MSDN][2](array) or [System.Convert.ToSingle][3]
[And a post on 4 byte convert to float4 on the forums for nice shadows][4]
[1]: http://www.dotnetperls.com/bitconverter
[2]: https://msdn.microsoft.com/en-us/library/system.bitconverter.tosingle%28v=vs.110%29.aspx
[3]: https://msdn.microsoft.com/en-us/library/eesyhxww(v=vs.110).aspx
[4]: http://forum.unity3d.com/threads/looking-for-a-way-to-pack-4-bytes-of-color-data-into-a-float-in-shader-lab.189728/
Trending Articles
More Pages to Explore .....