我们可以使用内置函数float() 将整型数转换为浮点数,如下所示: int i = 0; float f1 = float(i); float f2 = float(8);. GLSL ES 类型转换内置函数 ...
確定! 回上一頁