
public class Class352_Sub1 extends Class352 {

   Class100 aClass100_8090;
   public static float aFloat8091 = 0.25F;
   public static float aFloat8092 = 1.0F;
   public static float aFloat8093 = 1.0F;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8094;
   Class100 aClass100_8095;
   static final int anInt8096 = 256;
   Class100 aClass100_8097;
   Class100 aClass100_8098;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8099;
   Class100 aClass100_8100;
   Class103 aClass103_8101;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8102;
   public static float aFloat8103 = 1.0F;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8104;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8105;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8106;
   boolean aBool8107;


   void method6375() {}

   int method6389() {
      return 4;
   }

   boolean method6372() {
      if(this.method13056()) {
         this.aClass103_8101 = this.aClass545_Sub2_4460.method15316("FilterBloom");
         if(this.aClass103_8101 == null) {
            return false;
         } else {
            try {
               this.aClass225_Sub36_Sub1_8094 = this.aClass103_8101.method2030("sceneTex", 1300810293);
               this.aClass225_Sub36_Sub1_8102 = this.aClass103_8101.method2030("bloomTex1", -92958239);
               this.aClass225_Sub36_Sub1_8099 = this.aClass103_8101.method2030("params", -251388968);
               this.aClass225_Sub36_Sub1_8104 = this.aClass103_8101.method2030("sampleSize", 152167750);
               this.aClass225_Sub36_Sub1_8105 = this.aClass103_8101.method2030("pixelOffsetAndBloomScale", 1048271011);
               this.aClass225_Sub36_Sub1_8106 = this.aClass103_8101.method2030("PosAndTexCoords", 1576901423);
               this.aClass103_8101.method2000("test", 169964444);
               this.aClass100_8098 = this.aClass103_8101.method2000("techFullscreenTri", 169964444);
               this.aClass100_8090 = this.aClass103_8101.method2000("brightpass", 169964444);
               this.aClass100_8095 = this.aClass103_8101.method2000("blur", 169964444);
               this.aClass100_8097 = this.aClass103_8101.method2000("composite", 169964444);
               this.aClass100_8100 = this.aClass103_8101.method2000("techDefault", 169964444);
            } catch (Exception_Sub3_Sub2 var2) {
               return false;
            } catch (Exception_Sub3_Sub1 var3) {
               return false;
            }

            if(!this.aClass100_8098.method1921()) {
               return false;
            } else if(!this.aClass100_8090.method1921()) {
               return false;
            } else if(!this.aClass100_8095.method1921()) {
               return false;
            } else if(!this.aClass100_8097.method1921()) {
               return false;
            } else if(!this.aClass100_8100.method1921()) {
               return false;
            } else {
               this.aBool8107 = true;
               return true;
            }
         }
      } else {
         return false;
      }
   }

   void method6360(int var1, int var2) {}

   void method6364() {}

   int method6367() {
      return 4;
   }

   void method6365(int var1, Class151_Sub1 var2, Interface33 var3, Interface8 var4, Interface33 var5) {
      float var6 = this.aClass545_Sub2_4460.method14983();
      float var7 = (float)var2.method2741();
      float var8 = (float)var2.method2742();
      Interface33 var9 = var3;
      float var10 = var6 * 2.0F / var7;
      float var11 = -var6 * 2.0F / var8;
      float[] var12 = new float[]{-1.0F + var10, 1.0F + var11, 0.0F, 0.0F, -1.0F + var10, -3.0F + var11, 0.0F, 2.0F, 3.0F + var10, 1.0F + var11, 2.0F, 0.0F};
      int var13 = (int)var7;
      int var14 = (int)var8;
      int var15 = var13;
      int var16 = var14;
      if(var1 == 0) {
         var13 = 256;
         var14 = 256;
         this.aClass103_8101.method2007(this.aClass100_8090);
         this.aClass103_8101.method1997();
      } else if(var1 == 1) {
         var13 = 256;
         var14 = 256;
         var15 = var13;
         var16 = var14;
         this.aClass103_8101.method2007(this.aClass100_8095);
         this.aClass103_8101.method1997();
         this.aClass103_8101.method2033(this.aClass225_Sub36_Sub1_8104, aFloat8103 / var7, 0.0F, (byte)-106);
      } else if(var1 == 2) {
         var13 = 256;
         var14 = 256;
         var15 = var13;
         var16 = var14;
         this.aClass103_8101.method2007(this.aClass100_8095);
         this.aClass103_8101.method1997();
         this.aClass103_8101.method2033(this.aClass225_Sub36_Sub1_8104, 0.0F, aFloat8103 / var8, (byte)-60);
      } else if(var1 == 3) {
         this.aClass103_8101.method2007(this.aClass100_8097);
         var9 = var5;
         this.aClass103_8101.method2021(this.aClass225_Sub36_Sub1_8102, 1, var3, 363698526);
         this.aClass103_8101.method1997();
      }

      float var17 = (float)var13 / var7;
      float var18 = (float)var14 / var8;
      float var19 = (float)var15 / var7;
      float var20 = (float)var16 / var8;
      var12[8] = (var12[8] + 1.0F) * var17 - 1.0F;
      var12[5] = (var12[5] - 1.0F) * var18 + 1.0F;
      var12[10] *= var19;
      var12[7] *= var20;
      this.aClass103_8101.method2017(this.aClass225_Sub36_Sub1_8106, var12, -1029647099);
      this.aClass103_8101.method2021(this.aClass225_Sub36_Sub1_8094, 0, var9, -1041713593);
      this.aClass103_8101.method2055(this.aClass225_Sub36_Sub1_8099, aFloat8093, aFloat8091, aFloat8092, 0.0F, (byte)16);
      this.aClass103_8101.method2055(this.aClass225_Sub36_Sub1_8105, 0.0F, 0.0F, 256.0F / var7, 256.0F / var8, (byte)16);
      this.aClass545_Sub2_4460.method11460(0, 0, var13, var14);
      this.aClass545_Sub2_4460.r(0, 0, var13, var14);
   }

   boolean method6361() {
      return this.aBool8107;
   }

   int method6370() {
      return 1;
   }

   boolean method6378() {
      return this.aBool8107;
   }

   int method6387() {
      return 1;
   }

   boolean method6362() {
      if(this.method13056()) {
         this.aClass103_8101 = this.aClass545_Sub2_4460.method15316("FilterBloom");
         if(this.aClass103_8101 == null) {
            return false;
         } else {
            try {
               this.aClass225_Sub36_Sub1_8094 = this.aClass103_8101.method2030("sceneTex", -262200401);
               this.aClass225_Sub36_Sub1_8102 = this.aClass103_8101.method2030("bloomTex1", 2003504334);
               this.aClass225_Sub36_Sub1_8099 = this.aClass103_8101.method2030("params", 1797798662);
               this.aClass225_Sub36_Sub1_8104 = this.aClass103_8101.method2030("sampleSize", 1628384320);
               this.aClass225_Sub36_Sub1_8105 = this.aClass103_8101.method2030("pixelOffsetAndBloomScale", 295393526);
               this.aClass225_Sub36_Sub1_8106 = this.aClass103_8101.method2030("PosAndTexCoords", -713693830);
               this.aClass103_8101.method2000("test", 169964444);
               this.aClass100_8098 = this.aClass103_8101.method2000("techFullscreenTri", 169964444);
               this.aClass100_8090 = this.aClass103_8101.method2000("brightpass", 169964444);
               this.aClass100_8095 = this.aClass103_8101.method2000("blur", 169964444);
               this.aClass100_8097 = this.aClass103_8101.method2000("composite", 169964444);
               this.aClass100_8100 = this.aClass103_8101.method2000("techDefault", 169964444);
            } catch (Exception_Sub3_Sub2 var2) {
               return false;
            } catch (Exception_Sub3_Sub1 var3) {
               return false;
            }

            if(!this.aClass100_8098.method1921()) {
               return false;
            } else if(!this.aClass100_8090.method1921()) {
               return false;
            } else if(!this.aClass100_8095.method1921()) {
               return false;
            } else if(!this.aClass100_8097.method1921()) {
               return false;
            } else if(!this.aClass100_8100.method1921()) {
               return false;
            } else {
               this.aBool8107 = true;
               return true;
            }
         }
      } else {
         return false;
      }
   }

   void method6368(int var1) {
      this.aClass103_8101.method1998();
   }

   boolean method6371() {
      return this.aBool8107;
   }

   void method6376() {}

   void method6377() {}

   void method6374() {}

   void method6379(int var1, int var2) {}

   void method6366(int var1) {
      this.aClass103_8101.method1998();
   }

   void method6381(int var1, int var2) {}

   void method6382(int var1, Class151_Sub1 var2, Interface33 var3, Interface8 var4, Interface33 var5) {
      float var6 = this.aClass545_Sub2_4460.method14983();
      float var7 = (float)var2.method2741();
      float var8 = (float)var2.method2742();
      Interface33 var9 = var3;
      float var10 = var6 * 2.0F / var7;
      float var11 = -var6 * 2.0F / var8;
      float[] var12 = new float[]{-1.0F + var10, 1.0F + var11, 0.0F, 0.0F, -1.0F + var10, -3.0F + var11, 0.0F, 2.0F, 3.0F + var10, 1.0F + var11, 2.0F, 0.0F};
      int var13 = (int)var7;
      int var14 = (int)var8;
      int var15 = var13;
      int var16 = var14;
      if(var1 == 0) {
         var13 = 256;
         var14 = 256;
         this.aClass103_8101.method2007(this.aClass100_8090);
         this.aClass103_8101.method1997();
      } else if(var1 == 1) {
         var13 = 256;
         var14 = 256;
         var15 = var13;
         var16 = var14;
         this.aClass103_8101.method2007(this.aClass100_8095);
         this.aClass103_8101.method1997();
         this.aClass103_8101.method2033(this.aClass225_Sub36_Sub1_8104, aFloat8103 / var7, 0.0F, (byte)-34);
      } else if(var1 == 2) {
         var13 = 256;
         var14 = 256;
         var15 = var13;
         var16 = var14;
         this.aClass103_8101.method2007(this.aClass100_8095);
         this.aClass103_8101.method1997();
         this.aClass103_8101.method2033(this.aClass225_Sub36_Sub1_8104, 0.0F, aFloat8103 / var8, (byte)-112);
      } else if(var1 == 3) {
         this.aClass103_8101.method2007(this.aClass100_8097);
         var9 = var5;
         this.aClass103_8101.method2021(this.aClass225_Sub36_Sub1_8102, 1, var3, 150888339);
         this.aClass103_8101.method1997();
      }

      float var17 = (float)var13 / var7;
      float var18 = (float)var14 / var8;
      float var19 = (float)var15 / var7;
      float var20 = (float)var16 / var8;
      var12[8] = (var12[8] + 1.0F) * var17 - 1.0F;
      var12[5] = (var12[5] - 1.0F) * var18 + 1.0F;
      var12[10] *= var19;
      var12[7] *= var20;
      this.aClass103_8101.method2017(this.aClass225_Sub36_Sub1_8106, var12, -1277521279);
      this.aClass103_8101.method2021(this.aClass225_Sub36_Sub1_8094, 0, var9, 176336718);
      this.aClass103_8101.method2055(this.aClass225_Sub36_Sub1_8099, aFloat8093, aFloat8091, aFloat8092, 0.0F, (byte)16);
      this.aClass103_8101.method2055(this.aClass225_Sub36_Sub1_8105, 0.0F, 0.0F, 256.0F / var7, 256.0F / var8, (byte)16);
      this.aClass545_Sub2_4460.method11460(0, 0, var13, var14);
      this.aClass545_Sub2_4460.r(0, 0, var13, var14);
   }

   void method6383(int var1) {
      this.aClass103_8101.method1998();
   }

   boolean method13056() {
      return this.aClass545_Sub2_4460.aBool9765 && this.aClass545_Sub2_4460.method14968();
   }

   int method6384() {
      return 4;
   }

   public Class352_Sub1(Class545_Sub2 var1) {
      super(var1);
   }

   void method6380(int var1, int var2) {}

   int method6388() {
      return 1;
   }

   boolean method13057() {
      return this.aClass545_Sub2_4460.aBool9765 && this.aClass545_Sub2_4460.method14968();
   }

   boolean method13058() {
      return this.aClass545_Sub2_4460.aBool9765 && this.aClass545_Sub2_4460.method14968();
   }
}
