|
|
@ -76,8 +76,16 @@ namespace FidelityFX |
|
|
{ |
|
|
{ |
|
|
CurrentBiasOffset += biasOffset; |
|
|
CurrentBiasOffset += biasOffset; |
|
|
|
|
|
|
|
|
|
|
|
if (Mathf.Approximately(CurrentBiasOffset, 0f)) |
|
|
|
|
|
{ |
|
|
|
|
|
CurrentBiasOffset = 0f; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
foreach (var texture in Resources.FindObjectsOfTypeAll<Texture2D>()) |
|
|
foreach (var texture in Resources.FindObjectsOfTypeAll<Texture2D>()) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (texture.mipmapCount <= 1) |
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
texture.mipMapBias += biasOffset; |
|
|
texture.mipMapBias += biasOffset; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|