fix directx rendertarget crash

asset brower previews were asserting due to a cornercase rt assignment
also ditch mipgen for rts targetting a texture profile that's marked as nomip, and adjust hdr uopsampling shader to compensate for overdarks
This commit is contained in:
AzaezelX 2025-08-11 23:21:20 -05:00
parent 0404b743f6
commit 00ee42e2a8
4 changed files with 18 additions and 17 deletions

View file

@ -55,11 +55,10 @@ void main()
upSample.rgb = e*4.0;
upSample.rgb += (b+d+f+h)*2.0;
upSample.rgb += (a+c+g+i);
upSample.rgb *= 1.0 / 16.0;
upSample.rgb += (a+c+g+i);
finalOut += upSample;
}
finalOut /= mipCount0;
finalOut /= pow(mipCount0,3);
finalOut.a = 1.0;
OUT_col = finalOut;

View file

@ -51,7 +51,6 @@ float4 main(PFXVertToPix IN) : TORQUE_TARGET0
upSample.rgb = e*4.0;
upSample.rgb += (b+d+f+h)*2.0;
upSample.rgb += (a+c+g+i);
upSample.rgb *= 1.0 / 16.0;
finalOut += upSample;
}
finalOut /= mipCount0;