我试图用intBitsToFloat将GLSL3.3着色器中的整数标识符编码为浮动输出(我使用高p输出浮点数向量),然后使用readPixels将这个值输入pixelData = new Float32Array然后,我使用floatToIntBits(pixelData[0])将其解码回JS中的Int,其中var int32 = new Int32Array即,当我:
在GLSL中编码来自范围[0,2^23-1]的
我在那里读,我找到了Float NaN和Double NaN的概念。当我打开Float和Double类的源代码时,尝试了以下代码:if (Float.NaN == Float.intBitsToFloat(0x7fc00000))It is equivalent to the value returned by */
那么为什么我的两个条件都是在2nd condition日