Low precision and clamping when writing to floating point FBO

前端 未结 2 1662
野性不改
野性不改 2020-12-21 05:43

I have an FBO which has been created in the following way:

glGenRenderbuffers(1, &m_depthStencilBuffer);
glBindRenderbuffer(GL_RENDERBUFFER, m_depthStenc         


        
2条回答
  •  猫巷女王i
    2020-12-21 05:59

    Yes, it will be clamped to the range (0, 1) - check out glClampColor and disable color clamping.

    Hope this helps!

提交回复
热议问题