Skip to content

Commit 9c33170

Browse files
committed
Mip bias like a boss.
1 parent 02133e7 commit 9c33170

File tree

1 file changed

+4
-0
lines changed
  • com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera

1 file changed

+4
-0
lines changed

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@ internal void Update(FrameSettings currentFrameSettings, HDRenderPipeline hdrp,
859859
Vector2Int scaledSize = DynamicResolutionHandler.instance.GetScaledSize(new Vector2Int(actualWidth, actualHeight));
860860
actualWidth = scaledSize.x;
861861
actualHeight = scaledSize.y;
862+
if (IsDLSSEnabled())
863+
{
864+
globalMipBias += (float)Math.Log((double)actualWidth / (double)nonScaledViewport.x, 2.0);
865+
}
862866
}
863867

864868
var screenWidth = actualWidth;

0 commit comments

Comments
 (0)