Class InWorldAnnotationRenderer

java.lang.Object
guideme.scene.annotation.InWorldAnnotationRenderer

@Internal public final class InWorldAnnotationRenderer extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.renderpearl.api.pipeline.RenderPipeline
    Renders the parts of annotations that are hidden behind other geometry.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    render(com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3f min, org.joml.Vector3f max, int color, float thickness, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
     
    static void
    render(net.minecraft.client.renderer.feature.FeatureRenderDispatcher dispatcher, Collection<InWorldAnnotation> annotations, LightDarkMode lightDarkMode)
    Renders the annotations on top of the already rendered scene.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OCCLUDED_PIPELINE

      public static final com.mojang.renderpearl.api.pipeline.RenderPipeline OCCLUDED_PIPELINE
      Renders the parts of annotations that are hidden behind other geometry. Note that Minecraft uses a reversed depth buffer, so hidden fragments are those with a smaller depth value than what has been rendered before.
  • Method Details

    • render

      public static void render(net.minecraft.client.renderer.feature.FeatureRenderDispatcher dispatcher, Collection<InWorldAnnotation> annotations, LightDarkMode lightDarkMode)
      Renders the annotations on top of the already rendered scene. Every pass is rendered immediately, since they depend on the depth buffer contents left behind by the previous passes.
    • render

      public static void render(com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3f min, org.joml.Vector3f max, int color, float thickness, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)