fix(gltf): flip vertically by default (#9694)

This commit is contained in:
André Costa
2026-02-07 08:33:50 +01:00
committed by GitHub
parent 84858aa1c2
commit 989543e5aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -688,7 +688,7 @@ static void lv_draw_opengles_3d(lv_draw_task_t * t, const lv_draw_3d_dsc_t * dsc
params.disp_h = targ_tex_h;
params.texture_clip_area = &clip_area;
params.h_flip = dsc->h_flip;
params.v_flip = !dsc->v_flip;
params.v_flip = dsc->v_flip;
params.blend_opt = true;
lv_opengles_render(&params);
+1 -1
View File
@@ -634,7 +634,7 @@ static void lv_gltf_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj)
view->view_projection_matrix = fastgltf::math::fmat4x4(1.0f);
view->camera_pos = fastgltf::math::fvec3(0.0f);
view->texture.h_flip = false;
view->texture.v_flip = false;
view->texture.v_flip = true;
new(&view->ibm_by_skin_then_node) std::map<int32_t, std::map<fastgltf::Node *, fastgltf::math::fmat4x4>>;
lv_opengl_shader_portions_t portions;