mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
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:
parent
0404b743f6
commit
00ee42e2a8
4 changed files with 18 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue