Class WireframeRenderer
java.lang.Object
net.timtaran.interactivemc.util.client.render.WireframeRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderUnitCubeWireframe(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, float r, float g, float b, float a) Renders a unit cube wireframe with the specified color.
-
Constructor Details
-
WireframeRenderer
public WireframeRenderer()
-
-
Method Details
-
renderUnitCubeWireframe
public static void renderUnitCubeWireframe(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, float r, float g, float b, float a) Renders a unit cube wireframe with the specified color.This method draws all 12 edges of a unit cube from (0,0,0) to (1,1,1). The pose stack should be positioned and scaled appropriately before calling this method.
- Parameters:
poseStack- the pose stack for transformationsbufferSource- the buffer source for renderingpackedLight- the packed light valuer- the red color component (0.0 to 1.0)g- the green color component (0.0 to 1.0)b- the blue color component (0.0 to 1.0)a- the alpha component (0.0 to 1.0)
-