修改本体,添加CrossTrackPoint兼容层,兼容StaticTrack Hold,为难度选项扩增全屏可选,添加和调整某些谱面
Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
@@ -64,7 +64,7 @@ namespace SLSUtilities.Rendering.PostProcessing
|
||||
|
||||
// 【移动端极限优化】:强制降级到 32位 HDR 格式 (B10G11R11),
|
||||
// 相比主相机默认的 64位 R16G16B16A16,带宽消耗直接砍半,且肉眼几乎无损!
|
||||
if (SystemInfo.IsFormatSupported(GraphicsFormat.B10G11R11_UFloatPack32, FormatUsage.Linear | FormatUsage.Render))
|
||||
if (SystemInfo.IsFormatSupported(GraphicsFormat.B10G11R11_UFloatPack32, GraphicsFormatUsage.Linear | GraphicsFormatUsage.Render))
|
||||
{
|
||||
desc.graphicsFormat = GraphicsFormat.B10G11R11_UFloatPack32;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ namespace SLSUtilities.Rendering.PostProcessing
|
||||
desc.width = Mathf.Max(1, desc.width >> shift);
|
||||
desc.height = Mathf.Max(1, desc.height >> shift);
|
||||
|
||||
RenderingUtils.ReAllocateIfNeeded(ref _bloomMipDown[0], desc, FilterMode.Bilinear,
|
||||
RenderingUtils.ReAllocateHandleIfNeeded(ref _bloomMipDown[0], desc, FilterMode.Bilinear,
|
||||
TextureWrapMode.Clamp, name: "_BloomDown0");
|
||||
|
||||
// Source → Down[0] via Pass 0 (Prefilter)
|
||||
@@ -131,7 +131,7 @@ namespace SLSUtilities.Rendering.PostProcessing
|
||||
desc.width = Mathf.Max(1, desc.width >> 1);
|
||||
desc.height = Mathf.Max(1, desc.height >> 1);
|
||||
|
||||
RenderingUtils.ReAllocateIfNeeded(ref _bloomMipDown[i], desc, FilterMode.Bilinear,
|
||||
RenderingUtils.ReAllocateHandleIfNeeded(ref _bloomMipDown[i], desc, FilterMode.Bilinear,
|
||||
TextureWrapMode.Clamp, name: "_BloomDown" + i);
|
||||
|
||||
// Down[i-1] → Down[i] via Pass 1 (Dual Kawase Downsample)
|
||||
@@ -153,7 +153,7 @@ namespace SLSUtilities.Rendering.PostProcessing
|
||||
// 由于 desc 已经在 downsample 中不断减半,我们要重新从 Down[i] 读尺寸
|
||||
for (int i = mipCount - 1; i >= 0; i--)
|
||||
{
|
||||
RenderingUtils.ReAllocateIfNeeded(ref _bloomMipUp[i],
|
||||
RenderingUtils.ReAllocateHandleIfNeeded(ref _bloomMipUp[i],
|
||||
_bloomMipDown[i].rt.descriptor, FilterMode.Bilinear,
|
||||
TextureWrapMode.Clamp, name: "_BloomUp" + i);
|
||||
}
|
||||
@@ -188,4 +188,4 @@ namespace SLSUtilities.Rendering.PostProcessing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user