|
|
@ -83,8 +83,8 @@ namespace FidelityFX |
|
|
int displayWidth, int displayHeight, QualityMode qualityMode) |
|
|
int displayWidth, int displayHeight, QualityMode qualityMode) |
|
|
{ |
|
|
{ |
|
|
float ratio = GetUpscaleRatioFromQualityMode(qualityMode); |
|
|
float ratio = GetUpscaleRatioFromQualityMode(qualityMode); |
|
|
renderWidth = (int)(displayWidth / ratio + 0.01f); |
|
|
|
|
|
renderHeight = (int)(displayHeight / ratio + 0.01f); |
|
|
|
|
|
|
|
|
renderWidth = Mathf.RoundToInt(displayWidth / ratio); |
|
|
|
|
|
renderHeight = Mathf.RoundToInt(displayHeight / ratio); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static float GetMipmapBiasOffset(int renderWidth, int displayWidth) |
|
|
public static float GetMipmapBiasOffset(int renderWidth, int displayWidth) |
|
|
|