Add beautify post process to project

This commit is contained in:
Lucien
2026-08-03 16:52:25 +02:00
parent 3cd1ca53fd
commit 98a9c89de6
248 changed files with 23693 additions and 3085 deletions
@@ -0,0 +1,26 @@
using System.Collections.Generic;
using UnityEngine;
namespace Beautify.Universal {
[DisallowMultipleComponent]
[ExecuteAlways]
public sealed class BeautifyCutOutDoFRenderer : MonoBehaviour {
readonly List<Renderer> cachedRenderers = new List<Renderer>(32);
void OnEnable () {
gameObject.GetComponentsInChildren(true, cachedRenderers);
BeautifyRendererFeature.BeautifyDoFTransparentMaskPass.RegisterCutOutRenderers(cachedRenderers);
}
void OnDisable () {
BeautifyRendererFeature.BeautifyDoFTransparentMaskPass.UnregisterCutOutRenderers(cachedRenderers);
cachedRenderers.Clear();
}
}
}