Animationen ingame und im editor angepasst

This commit is contained in:
2026-08-20 15:30:03 +02:00
parent 1df03e759f
commit f3b10586ad
18 changed files with 378 additions and 174 deletions

View File

@@ -40,7 +40,7 @@
"Sitting Idle": {
"tx": 0.0,
"ty": 0.0,
"tz": -0.5,
"tz": -0.55,
"rx": 0.0,
"ry": 0.0,
"rz": 0.0
@@ -48,7 +48,7 @@
"Sit To Stand": {
"tx": 0.0,
"ty": 0.0,
"tz": -0.5,
"tz": -0.55,
"rx": 0.0,
"ry": 0.0,
"rz": 0.0

View File

@@ -34,10 +34,10 @@ vec4 triplanarArray(vec2 uvX, vec2 uvY, vec2 uvZ, vec3 bw, int idx) {
#endif
void main() {
// World-space splatmap UV (identisch zur Painting-Logik in TerrainEditorState)
// World-space splatmap UV (identisch zur Painting-Logik in TerrainEditorState, WORLD_HALF=1024)
vec2 splatUV = vec2(
(vWorldPos.x + 2048.0) / 4096.0,
1.0 - (vWorldPos.z + 2048.0) / 4096.0
(vWorldPos.x + 1024.0) / 2048.0,
1.0 - (vWorldPos.z + 1024.0) / 2048.0
);
vec4 a0 = texture(m_AlphaMap, splatUV);