@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user