private void Start()
 {
     material = new Material(Shader.Find("Klei/PostFX/LightBufferCompositor"));
     material.SetTexture("_InvalidTex", Assets.instance.invalidAreaTex);
     blurMaterial = new Material(Shader.Find("Klei/PostFX/Blur"));
     OnShadersReloaded();
     ShaderReloader.Register(OnShadersReloaded);
 }
 protected override void OnPrefabInit()
 {
     base.OnPrefabInit();
     ShaderReloader.Register(OnShadersReloaded);
     OnShadersReloaded();
     masks.Initialize();
     SubWorld.ZoneType[] array = (SubWorld.ZoneType[])Enum.GetValues(typeof(SubWorld.ZoneType));
     biomeMasks = new GroundMasks.BiomeMaskData[array.Length];
     for (int i = 0; i < array.Length; i++)
     {
         SubWorld.ZoneType zone_type = array[i];
         biomeMasks[i] = GetBiomeMask(zone_type);
     }
 }
 protected override void OnPrefabInit()
 {
     instance = this;
     base.OnPrefabInit();
     ShaderReloader.Register(OnShadersReloaded);
 }