Hi,
I’ve been struggling with this one for a while:
I have a camera rendering a scene into a render texture. This rendering uses Unity’s shader replacement mechanism to render objects with a custom shader. This pixel shader first samples this render texture (the very same texture the camera is rendering to) and then modulate the sampled pixel color (paint application). This results in kind of an incremental modification of the render texture.
Everything works as expected with OpenGL, but D3D(11) seems a little bit more picky: looks like the texture sampled is… just another arbitrary texture.
Hope this makes sense, kinda difficult to explain.
I of course can provide source code if relevant.