Пример #1
0
        void OnEnable()
        {
#if !RES_PROJECT
            //第一次使用后效系统时,预热所有后效Shader
            EngineCore.ShaderModule.Instance.WarmupShaderVariablesCollection("PostFXShaderCollection");
#endif

            newCamera = GetComponent <Camera>();
            peblist   = postEffect.Initialization();
        }
 void Start()
 {
     newCamera = GetComponent <Camera>();
     peblist   = postEffect.Initialization();
     // postEffect = new PostEffectSettings();
     for (int i = 0; i < peblist.Count; i++)
     {
         peblist[i].OnEnable();
     }
 }