修复编译报错

This commit is contained in:
ALIENJACK\alien 2025-01-02 09:28:42 +08:00
parent 2e9d546c0b
commit fe5c38dafc

View File

@ -27,8 +27,14 @@ namespace AxibugEmuOnline.Client
{ {
RenderScale = new FloatParameter(m_defaultRenderScale); RenderScale = new FloatParameter(m_defaultRenderScale);
GetEditableFilterParamters(); GetEditableFilterParamters();
Init();
}
protected virtual void Init()
{
m_material = new Material(Shader.Find(ShaderName)); m_material = new Material(Shader.Find(ShaderName));
OnInit(m_material); OnInit(m_material);
} }
protected virtual void OnInit(Material renderMat) { } protected virtual void OnInit(Material renderMat) { }