Merge pull request 'master' (#78) from Alienjack/AxibugEmuOnline:master into master

Reviewed-on: sin365/AxibugEmuOnline#78
This commit is contained in:
sin365 2025-01-02 14:45:16 +08:00
commit 54516d9482

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) { }