minor cosmetic tweaks in log renderer
This commit is contained in:
@@ -179,8 +179,8 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl
|
|||||||
var downModel: Model? = null
|
var downModel: Model? = null
|
||||||
var upIcon = upTexture
|
var upIcon = upTexture
|
||||||
var downIcon = downTexture
|
var downIcon = downTexture
|
||||||
var shouldRotateUp = true
|
var isLidUp = true
|
||||||
var shouldRotateDown = true
|
var isLidDown = true
|
||||||
|
|
||||||
when (upType) {
|
when (upType) {
|
||||||
NONSOLID -> upModel = flatTop(quadrants[idx])
|
NONSOLID -> upModel = flatTop(quadrants[idx])
|
||||||
@@ -190,7 +190,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl
|
|||||||
} else {
|
} else {
|
||||||
upIcon = sideTexture
|
upIcon = sideTexture
|
||||||
upModel = extendTop(quadrants[idx])
|
upModel = extendTop(quadrants[idx])
|
||||||
shouldRotateUp = false
|
isLidUp = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PARALLEL -> {
|
PARALLEL -> {
|
||||||
@@ -209,7 +209,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl
|
|||||||
} else {
|
} else {
|
||||||
downIcon = sideTexture
|
downIcon = sideTexture
|
||||||
downModel = extendBottom(quadrants[idx])
|
downModel = extendBottom(quadrants[idx])
|
||||||
shouldRotateDown = false
|
isLidDown = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PARALLEL -> {
|
PARALLEL -> {
|
||||||
@@ -227,9 +227,11 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl
|
|||||||
blockContext.blockCenter,
|
blockContext.blockCenter,
|
||||||
icon = upIcon,
|
icon = upIcon,
|
||||||
postProcess = { ctx, qi, q, vi, v ->
|
postProcess = { ctx, qi, q, vi, v ->
|
||||||
rotateUV((if (shouldRotateUp) idx else 0) + (if (logAxis == Axis.X) 1 else 0))
|
if (isLidUp) {
|
||||||
|
rotateUV(idx + if (logAxis == Axis.X) 1 else 0)
|
||||||
if (logAxis == Axis.X) mirrorUV(true, true)
|
if (logAxis == Axis.X) mirrorUV(true, true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
if (downModel != null) modelRenderer.render(
|
if (downModel != null) modelRenderer.render(
|
||||||
renderer,
|
renderer,
|
||||||
@@ -238,9 +240,11 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl
|
|||||||
blockContext.blockCenter,
|
blockContext.blockCenter,
|
||||||
icon = downIcon,
|
icon = downIcon,
|
||||||
postProcess = { ctx, qi, q, vi, v ->
|
postProcess = { ctx, qi, q, vi, v ->
|
||||||
rotateUV((if (shouldRotateDown) 3 - idx else 0) + (if (logAxis == Axis.X) 1 else 0))
|
if (isLidDown) {
|
||||||
|
rotateUV((if (logAxis == Axis.X) 0 else 3) - idx)
|
||||||
if (logAxis != Axis.Y) mirrorUV(true, true)
|
if (logAxis != Axis.Y) mirrorUV(true, true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user