Skip to content

Commit df5addd

Browse files
author
James Kim (Daewon)
authored
Update PostProcessManager.cs
1 parent cfb7a21 commit df5addd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: PostProcessing/Runtime/PostProcessManager.cs

+19
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,31 @@ void ReloadBaseTypes()
8080
CleanBaseTypes();
8181

8282
// Rebuild the base type map
83+
/*
8384
var types = RuntimeUtilities.GetAllAssemblyTypes()
8485
.Where(
8586
t => t.IsSubclassOf(typeof(PostProcessEffectSettings))
8687
&& t.IsDefined(typeof(PostProcessAttribute), false)
8788
&& !t.IsAbstract
8889
);
90+
*/
91+
92+
// XXX(jameskim): 어셈블리를 도는데 시간이 너무 오래 걸려서 (600ms+) 하드코딩합니다.
93+
// Debug.Log(types.Aggregate("", (str, t) => str + t + "\n"));
94+
var types = new[]
95+
{
96+
typeof(UnityEngine.Rendering.PostProcessing.AmbientOcclusion),
97+
typeof(UnityEngine.Rendering.PostProcessing.AutoExposure),
98+
typeof(UnityEngine.Rendering.PostProcessing.Bloom),
99+
typeof(UnityEngine.Rendering.PostProcessing.ChromaticAberration),
100+
typeof(UnityEngine.Rendering.PostProcessing.ColorGrading),
101+
typeof(UnityEngine.Rendering.PostProcessing.DepthOfField),
102+
typeof(UnityEngine.Rendering.PostProcessing.Grain),
103+
typeof(UnityEngine.Rendering.PostProcessing.LensDistortion),
104+
typeof(UnityEngine.Rendering.PostProcessing.MotionBlur),
105+
typeof(UnityEngine.Rendering.PostProcessing.ScreenSpaceReflections),
106+
typeof(UnityEngine.Rendering.PostProcessing.Vignette),
107+
};
89108

90109
foreach (var type in types)
91110
{

0 commit comments

Comments
 (0)