Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Is there a way to update a render texture each time a pixel is drawn ?  (Read 1643 times)

0 Members and 1 Guest are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Hi!

I have a set of faces that I want to draw, I don't want to use default opengl blending and depth test because it's a very complex scene.

I've tried to perform instanced rendering but the problem is that SFML updates the render texture each time that something is drawn and not each time that a pixel is updated with the sahder, so, I can't get the right colour for faces which overlap in my shader using instanced rendering.

So I  update the render texture each time I render a face, so I do more draw calls but it's slower.

My question is simple so, isn't there a way to update the render texture each time a pixel is written on the render teture with the shader ?

I don't know opengl very well so it's why I'm asking this question.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Ok so I'll look into the source code of the opensource driver to see if I can't improve some things before Vulkan is released....