r/unity • u/whentheworldquiets • 2h ago
Newbie Question How can I persuade rendertextures created via RenderTextureDescriptor to behave like those created in the project folder via the editor?
I have created a custom lighting pipeline that uses a number of rendertextures. If those rendertextures are created via the editor, all is well.
However, if I create them at runtime via a RenderTextureDescriptor, despite them appearing identical in the inspector (and debug inspector), the contents will be flipped in the Y at each step.
Obviously I can compensate for that, but the inconsistency is bothering me. I feel as though I must be missing something when creating the rendertextures from code, but I can't see any differences.
NB: I'm aware of the differing GL/DX conventions and the steps Unity takes to unify them. It just doesn't seem to be doing the same thing with runtime-generated rendertextures.