Class ShaderCompatibilityDetector

java.lang.Object
com.hbm_m.client.render.shader.ShaderCompatibilityDetector

public class ShaderCompatibilityDetector extends Object
  • Constructor Details

    • ShaderCompatibilityDetector

      public ShaderCompatibilityDetector()
  • Method Details

    • isExternalShaderActive

      public static boolean isExternalShaderActive()
    • processPendingChunkInvalidation

      public static void processPendingChunkInvalidation()
      Вызывать из ClientTickEvent.END - инвалидирует чанки при смене шейдера. НЕ вызывать из render loop - ломает итерацию Sodium (ReferenceOpenHashSet.wrapped is null).
    • isRenderingShadowPass

      public static boolean isRenderingShadowPass()
      Проверяет, рендерится ли сейчас shadow pass Iris (для realtime shadows).
    • shouldRenderBlockEntityOffScreen

      public static boolean shouldRenderBlockEntityOffScreen()
      BlockEntityRenderer.shouldRenderOffScreen(T). When true, Sodium/vanilla still invoke BER even if the BE AABB is outside the main camera frustum — required so shader-pack shadow maps include off-screen casters whose shadows remain visible on screen.
    • canUseIrisExtendedShader

      public static boolean canUseIrisExtendedShader()
      True when an active Iris pipeline can hand out an ExtendedShader for our raw-GL draws. When false, callers should fall back to the vanilla shader path or to bufferSource.putBulkData delegation.
    • useVboGeometry

      public static boolean useVboGeometry()
      Статическая геометрия машин/дверей всегда предоставляется BER/VBO системой. Baked world quads для этих моделей не используются.