Fix textures overlapping and glitching for legs

This commit is contained in:
Teriuihi 2025-06-22 20:15:35 +02:00
parent eb67a33331
commit 0e71c0f581

View File

@ -166,7 +166,7 @@ export class PlayerModelService {
// Left Leg - 4x12x4 pixels in the texture // Left Leg - 4x12x4 pixels in the texture
this.playerModel.add(this.createBoxWithUvMapping( this.playerModel.add(this.createBoxWithUvMapping(
0.25, 0.7, 0.25, // width, height, depth 0.26, 0.7, 0.26, // width, height, depth
[ [
{x: 4, y: 16, w: 4, h: 4}, // top {x: 4, y: 16, w: 4, h: 4}, // top
{x: 8, y: 16, w: 4, h: 4}, // bottom {x: 8, y: 16, w: 4, h: 4}, // bottom
@ -180,7 +180,7 @@ export class PlayerModelService {
// Right Leg - 4x12x4 pixels in the texture // Right Leg - 4x12x4 pixels in the texture
this.playerModel.add(this.createBoxWithUvMapping( this.playerModel.add(this.createBoxWithUvMapping(
0.25, 0.7, 0.25, // width, height, depth 0.26, 0.7, 0.26, // width, height, depth
[ [
{x: 4, y: 16, w: 4, h: 4}, // top - mirror of left leg {x: 4, y: 16, w: 4, h: 4}, // top - mirror of left leg
{x: 8, y: 16, w: 4, h: 4}, // bottom - mirror of left leg {x: 8, y: 16, w: 4, h: 4}, // bottom - mirror of left leg