mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix sprite offset
This commit is contained in:
parent
2124c8137b
commit
68f3c34fc4
@ -163,7 +163,7 @@ void main() {
|
|||||||
* SCALE_FACTOR;
|
* SCALE_FACTOR;
|
||||||
|
|
||||||
if (model_wind_sway > 0.0) {
|
if (model_wind_sway > 0.0) {
|
||||||
vec2 center = sprite_pos.xy + 0.5;
|
vec2 center = sprite_pos.xy;
|
||||||
vec4 min_entity = nearest_entity(vec3(center, sprite_pos.z), 0.0);
|
vec4 min_entity = nearest_entity(vec3(center, sprite_pos.z), 0.0);
|
||||||
|
|
||||||
const float PUSH_FACTOR = 5;
|
const float PUSH_FACTOR = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user