Class InWorldAnnotationRenderer
java.lang.Object
guideme.scene.annotation.InWorldAnnotationRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.renderpearl.api.pipeline.RenderPipelineRenders the parts of annotations that are hidden behind other geometry. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrender(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 voidrender(net.minecraft.client.renderer.feature.FeatureRenderDispatcher dispatcher, Collection<InWorldAnnotation> annotations, LightDarkMode lightDarkMode) Renders the annotations on top of the already rendered scene.
-
Field Details
-
OCCLUDED_PIPELINE
public static final com.mojang.renderpearl.api.pipeline.RenderPipeline OCCLUDED_PIPELINERenders 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)
-