着重优化调度

Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
2026-07-21 09:58:21 +08:00
parent 04ec368a59
commit 02617c1385
117 changed files with 107322 additions and 1326 deletions

View File

@@ -72,6 +72,11 @@ namespace SLSUtilities.Rendering.PostProcessing
for (int i = 0; i < postProcessors.Count; i++)
{
var volume = postProcessors[i];
if (!volume.active)
{
continue;
}
// 关键修复:从 Pass 的缓存池获取材质并注入给 Volume
var mat = GetOrCreateMaterial(volume.GetShaderName());
volume.SetMaterial(mat);