private void OnRenderImage(RenderTexture src, RenderTexture dst)
 {
     //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
     if (chacheTarget && null != cacher)
     {
         Graphics.Blit(cacher.GetTexture(), _cachedTexture);
         Graphics.Blit(src, dst);
         chacheTarget = false;
         Object.Destroy(cacher);
         cacher = null;
         if (requestBlitFilterTexture)
         {
             requestBlitFilterTexture = false;
             Graphics.Blit(_cachedTexture, filteredTexture);
         }
         if (onCompleteChecheTarget != null)
         {
             onCompleteChecheTarget();
             onCompleteChecheTarget = null;
         }
     }
     else if (blurMaterial == null || blurPower <= 0.01f)
     {
         Graphics.Blit(src, dst);
     }
     else
     {
         blurMaterial.SetVector("_Origin", new Vector4(center.x, center.y, 0f, 0f));
         blurMaterial.SetFloat("_Power", blurPower);
         _filteredTexture.DiscardContents(true, true);
         if (_cachedTexture != null)
         {
             Graphics.Blit(_cachedTexture, _filteredTexture, blurMaterial);
         }
         else
         {
             Graphics.Blit(src, _filteredTexture, blurMaterial);
         }
         Graphics.Blit(src, dst);
     }
 }
    private void Start()
    {
        //IL_0027: Unknown result type (might be due to invalid IL or missing references)
        //IL_002c: Expected O, but got Unknown
        if (mat == null)
        {
            Renderer component = this.GetComponent <Renderer>();
            if (component == null)
            {
                return;
            }
            mat = component.get_material();
        }
        Camera mainCamera = MonoBehaviourSingleton <AppMain> .I.mainCamera;

        if (!(mainCamera == null))
        {
            RenderTargetCacher component2 = mainCamera.GetComponent <RenderTargetCacher>();
            if (!(component2 == null))
            {
                mat.set_mainTexture(component2.GetTexture());
            }
        }
    }
    public void SetMagiModel(GameObject magi, GameObject symbol, GameObject[] materials)
    {
        //IL_0007: Unknown result type (might be due to invalid IL or missing references)
        //IL_000c: Expected O, but got Unknown
        //IL_0012: Unknown result type (might be due to invalid IL or missing references)
        //IL_001d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0027: Expected O, but got Unknown
        //IL_0033: Unknown result type (might be due to invalid IL or missing references)
        //IL_0038: Expected O, but got Unknown
        //IL_003e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0049: Unknown result type (might be due to invalid IL or missing references)
        //IL_0053: Expected O, but got Unknown
        //IL_0094: Unknown result type (might be due to invalid IL or missing references)
        //IL_0099: Expected O, but got Unknown
        //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
        //IL_013d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0168: Unknown result type (might be due to invalid IL or missing references)
        //IL_017c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0183: Unknown result type (might be due to invalid IL or missing references)
        //IL_0188: Expected O, but got Unknown
        //IL_0188: Expected O, but got Unknown
        //IL_018f: Unknown result type (might be due to invalid IL or missing references)
        //IL_019a: Unknown result type (might be due to invalid IL or missing references)
        //IL_01a4: Expected O, but got Unknown
        //IL_01b3: Unknown result type (might be due to invalid IL or missing references)
        //IL_01b8: Expected O, but got Unknown
        //IL_01d7: Unknown result type (might be due to invalid IL or missing references)
        //IL_01dc: Expected O, but got Unknown
        //IL_020b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0228: Unknown result type (might be due to invalid IL or missing references)
        Utility.Attach(magiObjectParent, magi.get_transform());
        Utility.SetLayerWithChildren(magi.get_transform(), magiObjectParent.get_gameObject().get_layer());
        Utility.Attach(magiSymbolParent, symbol.get_transform());
        Utility.SetLayerWithChildren(symbol.get_transform(), magiSymbolParent.get_gameObject().get_layer());
        CreateEffect(foundationEffect, foundationEffectParent, magiCamera);
        RenderTargetCacher component = mainCameraBlur.GetComponent <RenderTargetCacher>();

        Renderer[] componentsInChildren = magi.GetComponentsInChildren <Renderer>();
        Renderer[] array = componentsInChildren;
        foreach (Renderer val in array)
        {
            Material val2 = val.get_material();
            val2.SetTexture("_EnvTex", component.GetTexture());
            val2.SetVector("_LightDir", new Vector4(-0.24f, -0.24f, -1.64f, 1f));
        }
        component.cacheAfter = true;
        magiMaterialEffects  = (GameObject[])new GameObject[materials.Length];
        for (int j = 0; j < materials.Length; j++)
        {
            GameObject val3 = materials[j];
            val3.set_name("MAGI");
            GrowMagiMaterialRotator growMagiMaterialRotator = val3.AddComponent <GrowMagiMaterialRotator>();
            growMagiMaterialRotator.Setup(new Vector3(Random.get_value() * 360f, Random.get_value() * 360f, Random.get_value() * 360f), Random.Range(180f, 540f));
            Transform val4 = ResourceUtility.Realizes(magiMaterialEffectPrefab, magiEffectParent, magiEffectParent.get_gameObject().get_layer());
            Utility.Attach(val4.GetChild(0), val3.get_transform());
            Utility.SetLayerWithChildren(val3.get_transform(), magiEffectParent.get_gameObject().get_layer());
            magiMaterialEffects[j] = val4.get_gameObject();
            Renderer[] componentsInChildren2 = val3.GetComponentsInChildren <Renderer>();
            Renderer[] array2 = componentsInChildren2;
            foreach (Renderer val5 in array2)
            {
                Material val6 = val5.get_material();
                val6.SetTexture("_EnvTex", component.GetTexture());
                val6.SetVector("_LightDir", new Vector4(13.07f, -12.7f, -0.6f, 1f));
            }
            val4.get_gameObject().SetActive(false);
        }
    }