public void Initialization(MobileBloom.BloomType bloomType) { this.m_bloomType = bloomType; if (this.m_bloomType == MobileBloom.BloomType.None) { base.set_enabled(false); return; } base.Initialization(); if (this.IsInitSuccessed) { this.InitValue(0f, 0.25f); } }
private void OnRenderImage(RenderTexture srcRt, RenderTexture dstRt) { if (this.m_materials == null) { base.set_enabled(false); return; } MobileBloom.BloomType bloomType = this.m_bloomType; if (bloomType != MobileBloom.BloomType.Lightning) { base.set_enabled(false); } else { this.Lightning(srcRt, dstRt); } }