OpenGl read and write to the same texture

后端 未结 4 1146
既然无缘
既然无缘 2020-12-11 05:18

I have a RGBA16F texture with depth, normal.x, normal.y on it. I want to read r, g, b and write to a on the texture. I will hit every pixel exactly once.

Would there

4条回答
  •  轮回少年
    2020-12-11 06:06

    You cant read and write from a single texture at the same time. To get round this you usually create another texture so that you read from one texture and write into another. These two textures can then be read back together or individually in your shader.

提交回复
热议问题