Merge pull request #53237 from metinc/fix-animated-sprite-precision-error-master
This commit is contained in:
commit
198b49d8b5
2 changed files with 2 additions and 2 deletions
|
|
@ -811,7 +811,7 @@ void BaseMaterial3D::_update_shader() {
|
|||
code += " particle_frame = mod(particle_frame, particle_total_frames);\n";
|
||||
code += " }";
|
||||
code += " UV /= vec2(h_frames, v_frames);\n";
|
||||
code += " UV += vec2(mod(particle_frame, h_frames) / h_frames, floor(particle_frame / h_frames) / v_frames);\n";
|
||||
code += " UV += vec2(mod(particle_frame, h_frames) / h_frames, floor((particle_frame + 0.5) / h_frames) / v_frames);\n";
|
||||
} break;
|
||||
case BILLBOARD_MAX:
|
||||
break; // Internal value, skip.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue