mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'isse/fix-sprite-pushing' into 'master'
Fix sprite pushing offset in shader See merge request veloren/veloren!4431
This commit is contained in:
commit
bedb46ac48
@ -163,7 +163,7 @@ void main() {
|
||||
* SCALE_FACTOR;
|
||||
|
||||
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);
|
||||
|
||||
const float PUSH_FACTOR = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user