Fix textures overlapping and glitching for legs
This commit is contained in:
parent
eb67a33331
commit
0e71c0f581
|
|
@ -166,7 +166,7 @@ export class PlayerModelService {
|
|||
|
||||
// Left Leg - 4x12x4 pixels in the texture
|
||||
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: 8, y: 16, w: 4, h: 4}, // bottom
|
||||
|
|
@ -180,7 +180,7 @@ export class PlayerModelService {
|
|||
|
||||
// Right Leg - 4x12x4 pixels in the texture
|
||||
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: 8, y: 16, w: 4, h: 4}, // bottom - mirror of left leg
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user