[engine]Compile fix regarding casting an int to float in the rendering part of angelcode support.