Package com.hbm_m.client.render.shader
Class ShaderCompatibilityDetector
java.lang.Object
com.hbm_m.client.render.shader.ShaderCompatibilityDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTrue when an active Iris pipeline can hand out anExtendedShaderfor our raw-GL draws.static booleanstatic booleanПроверяет, рендерится ли сейчас shadow pass Iris (для realtime shadows).static voidВызывать из ClientTickEvent.END - инвалидирует чанки при смене шейдера.static booleanBlockEntityRenderer.shouldRenderOffScreen(T).static booleanСтатическая геометрия машин/дверей всегда предоставляется BER/VBO системой.
-
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). Whentrue, 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 anExtendedShaderfor our raw-GL draws. When false, callers should fall back to the vanilla shader path or tobufferSource.putBulkDatadelegation. -
useVboGeometry
public static boolean useVboGeometry()Статическая геометрия машин/дверей всегда предоставляется BER/VBO системой. Baked world quads для этих моделей не используются.
-