Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个 R8G8B8 浮点渲染目标,并希望将其用作 R24 目标。编码
//cg out = float4(v, v, v, v);
似乎钳制在 0 和 1 之间。
在 Cg 中写入/读取浮点纹理的正确方法是什么?
在 OpenGL 中,需要使用浮点纹理格式,例如 R32F 或 RGBA32F。那你就不会被夹住了。我敢打赌,在 D3D 中也是如此。