I have an imageEffect component on my camera.
float4 frag (v2f_img i) : COLOR
{
float4 original = tex2D(_MainTex, i.uv );
float4 background = tex2D(_BackgroundTex, i.uv );
_MainTex is the rendered scene, that is set via ImageEffect. and _BackgroundTex is a texture asset.
OnRenderImage (RenderTexture source, RenderTexture destination) {
ImageEffects.BlitWithMaterial( shaderMat, source, destination );
If I enable anti-aliasing in the project quality settings, _BackgroundTex flips vertically?
How can I make sure that when I use uv in v2f_img to sample a texture, that it will always stay properly oriented for all quality settings?
komatii