PS: casting in hlsl is: int index = (int) Scale; So you are accessing element 6 ... float factor = frac(scale); //for 6.5 frac gives you 0.5 OutDeviceColor ...
確定! 回上一頁