positive Z is pointing from viewer
This commit is contained in:
parent
9744269ac6
commit
a161549392
@ -257,7 +257,7 @@ fun Font.draw(
|
|||||||
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
||||||
drawOutline: Boolean = false,
|
drawOutline: Boolean = false,
|
||||||
outlineColor: RGBAColor = RGBAColor.BLACK,
|
outlineColor: RGBAColor = RGBAColor.BLACK,
|
||||||
outlineZ: Float = -0.1f,
|
outlineZ: Float = 0.1f,
|
||||||
): Float {
|
): Float {
|
||||||
return drawInternal(
|
return drawInternal(
|
||||||
poseStack = poseStack,
|
poseStack = poseStack,
|
||||||
@ -305,7 +305,7 @@ fun Font.draw(
|
|||||||
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
||||||
drawOutline: Boolean = false,
|
drawOutline: Boolean = false,
|
||||||
outlineColor: RGBAColor = RGBAColor.BLACK,
|
outlineColor: RGBAColor = RGBAColor.BLACK,
|
||||||
outlineZ: Float = -0.1f,
|
outlineZ: Float = 0.1f,
|
||||||
): Float {
|
): Float {
|
||||||
return drawInternal(
|
return drawInternal(
|
||||||
poseStack = poseStack,
|
poseStack = poseStack,
|
||||||
@ -352,7 +352,7 @@ fun GuiGraphics.draw(
|
|||||||
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
||||||
drawOutline: Boolean = false,
|
drawOutline: Boolean = false,
|
||||||
outlineColor: RGBAColor = RGBAColor.BLACK,
|
outlineColor: RGBAColor = RGBAColor.BLACK,
|
||||||
outlineZ: Float = -0.1f,
|
outlineZ: Float = 0.1f,
|
||||||
): Float {
|
): Float {
|
||||||
val width = font.draw(
|
val width = font.draw(
|
||||||
poseStack = pose(),
|
poseStack = pose(),
|
||||||
@ -402,7 +402,7 @@ fun GuiGraphics.draw(
|
|||||||
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
rounding: GravityRounding = if (scale == 1f) GravityRounding.DEFAULT else GravityRounding.NO,
|
||||||
drawOutline: Boolean = false,
|
drawOutline: Boolean = false,
|
||||||
outlineColor: RGBAColor = RGBAColor.BLACK,
|
outlineColor: RGBAColor = RGBAColor.BLACK,
|
||||||
outlineZ: Float = -0.1f,
|
outlineZ: Float = 0.1f,
|
||||||
): Float {
|
): Float {
|
||||||
val width = font.draw(
|
val width = font.draw(
|
||||||
poseStack = pose(),
|
poseStack = pose(),
|
||||||
|
Loading…
Reference in New Issue
Block a user