Class SuperByteBuffer
java.lang.Object
com.simibubi.create.foundation.render.SuperByteBuffer
- All Implemented Interfaces:
com.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.Scale<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
public class SuperByteBuffer
extends Object
implements com.jozufozu.flywheel.util.transform.Scale<SuperByteBuffer>, com.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>, com.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>, com.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor(int color) color(int r, int g, int b, int a) Prevents vertex colors from being divided by the diffuse value calculated from the raw untransformed normal vector.Prevents vertex colors from being multiplied by the diffuse value calculated from the final transformed normal vector.Transforms normals not only by the local matrix stack, but also by the passed matrix stack.static floatgetUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float u) static floatgetUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float v) Uses max light from calculated light (world light or custom light) and vertex light for the final light value.booleanisEmpty()light()light(int packedLightCoords) light(com.mojang.math.Matrix4f lightTransform) light(com.mojang.math.Matrix4f lightTransform, int packedLightCoords) static intmaxLight(int packedLight1, int packedLight2) multiply(com.mojang.math.Quaternion quaternion) overlay()overlay(int overlay) popPose()pushPose()voidrenderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) reset()rotateCentered(com.mojang.math.Quaternion q) rotateCentered(net.minecraft.core.Direction axis, float radians) scale(float factorX, float factorY, float factorZ) shiftUV(SpriteShiftEntry entry) shiftUVScrolling(SpriteShiftEntry entry, float scrollV) shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) transform(com.mojang.blaze3d.vertex.PoseStack stack) static inttransformColor(byte component, float scale) static inttransformColor(int component, float scale) translate(double x, double y, double z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.util.transform.Rotate
multiply, multiplyRadians, rotate, rotate, rotateToFace, rotateX, rotateXRadians, rotateY, rotateYRadians, rotateZ, rotateZRadiansMethods inherited from interface com.jozufozu.flywheel.util.transform.Scale
scaleMethods inherited from interface com.jozufozu.flywheel.util.transform.Translate
centre, nudge, translate, translate, translate, translateAll, translateBack, translateBack, translateBack, translateX, translateY, translateZ, unCentre
-
Constructor Details
-
SuperByteBuffer
public SuperByteBuffer(com.mojang.blaze3d.vertex.BufferBuilder buf)
-
-
Method Details
-
getUnInterpolatedU
public static float getUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float u) -
getUnInterpolatedV
public static float getUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float v) -
renderInto
public void renderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) -
reset
-
translate
- Specified by:
translatein interfacecom.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>
-
multiply
- Specified by:
multiplyin interfacecom.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>
-
transform
-
rotateCentered
-
rotateCentered
-
color
-
color
-
color
-
disableDiffuseDiv
Prevents vertex colors from being divided by the diffuse value calculated from the raw untransformed normal vector. Useful when passed vertex colors do not have diffuse baked in. Disabled when custom color is used. -
disableDiffuseMult
Prevents vertex colors from being multiplied by the diffuse value calculated from the final transformed normal vector. Useful for entity rendering, when diffuse is applied automatically later. -
shiftUV
-
shiftUVScrolling
-
shiftUVtoSheet
public SuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) -
overlay
-
overlay
-
light
-
light
-
light
-
light
-
hybridLight
Uses max light from calculated light (world light or custom light) and vertex light for the final light value. Ineffective if any other light method was not called. -
fullNormalTransform
Transforms normals not only by the local matrix stack, but also by the passed matrix stack. -
forEntityRender
-
isEmpty
public boolean isEmpty() -
transformColor
public static int transformColor(byte component, float scale) -
transformColor
public static int transformColor(int component, float scale) -
maxLight
public static int maxLight(int packedLight1, int packedLight2) -
scale
- Specified by:
scalein interfacecom.jozufozu.flywheel.util.transform.Scale<SuperByteBuffer>
-
pushPose
- Specified by:
pushPosein interfacecom.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
-
popPose
- Specified by:
popPosein interfacecom.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
-