From fe5c38dafc943a2bb5c2f0c6a7b8f138347e9e8a Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Thu, 2 Jan 2025 09:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppMain/Manager/AppSettings/Filter/FilterEffect.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/AppSettings/Filter/FilterEffect.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/AppSettings/Filter/FilterEffect.cs index f79752ef..d0f194d6 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/AppSettings/Filter/FilterEffect.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/AppSettings/Filter/FilterEffect.cs @@ -27,8 +27,14 @@ namespace AxibugEmuOnline.Client { RenderScale = new FloatParameter(m_defaultRenderScale); GetEditableFilterParamters(); + + Init(); + } + + protected virtual void Init() + { m_material = new Material(Shader.Find(ShaderName)); - OnInit(m_material); + OnInit(m_material); } protected virtual void OnInit(Material renderMat) { }