Animationen ingame und im editor angepasst
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user