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) diffuseCalculator(com.jozufozu.flywheel.util.DiffuseLightCalculator diffuseCalculator) 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.com.mojang.blaze3d.vertex.PoseStackstatic 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
-
renderInto
public void renderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) -
reset
-
isEmpty
public boolean isEmpty() -
getTransforms
public com.mojang.blaze3d.vertex.PoseStack getTransforms() -
translate
- Specified by:
translatein interfacecom.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>
-
multiply
- Specified by:
multiplyin interfacecom.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>
-
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>
-
transform
-
rotateCentered
-
rotateCentered
-
color
-
color
-
color
-
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. -
diffuseCalculator
public SuperByteBuffer diffuseCalculator(com.jozufozu.flywheel.util.DiffuseLightCalculator diffuseCalculator) -
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
-
transformColor
public static int transformColor(byte component, float scale) -
transformColor
public static int transformColor(int component, float scale) -
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) -
maxLight
public static int maxLight(int packedLight1, int packedLight2)
-