Skip to content

Commit

Permalink
Fix Avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovdev committed Nov 12, 2024
1 parent ee48c47 commit 462d667
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
7 changes: 4 additions & 3 deletions assets/minecraft/models/item/avatar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"textures": {
"particle": "block/soul_sand"
},
"gui_light": "front",
"gui_light": "side",
"display": {
"gui": {
"translation": [0, 19, 0],
"scale": [3.7, 3.7, 3.7]
"translation": [0, 20.5, 0],
"scale": [3.7, 3.7, 3.7],
"rotation": [0, 180, 0]
}
}
}
5 changes: 3 additions & 2 deletions assets/minecraft/models/item/avatar_small.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"textures": {
"particle": "block/soul_sand"
},
"gui_light": "front",
"gui_light": "side",
"display": {
"gui": {
"translation": [0, 14, 0],
"scale": [3.0, 3.0, 3.0]
"scale": [3.0, 3.0, 3.0],
"rotation": [0, 180, 0]
}
}
}
20 changes: 20 additions & 0 deletions assets/minecraft/shaders/core/rendertype_entity_translucent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"vertex": "minecraft:core/rendertype_entity_translucent",
"fragment": "minecraft:core/rendertype_entity_translucent",
"samplers": [
{ "name": "Sampler0" },
{ "name": "Sampler1" },
{ "name": "Sampler2" }
],
"uniforms": [
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] },
{ "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] },
{ "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] },
{ "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] },
{ "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] },
{ "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] }
]
}

0 comments on commit 462d667

Please sign in to comment.