Framebuffer object with float texture clamps values

前端 未结 2 660
渐次进展
渐次进展 2020-12-21 08:07

I have checked this similar question, but the suggestions did not solve my problem: Low precision and clamping when writing to floating point FBO.

I

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-21 08:48

    You must use glClampColor to state whether the colors you read with glReadPixels will be clamped or not.

    Note that this is just for the reading of the color. What gets written by the fragment shader will always be unclamped.

提交回复
热议问题