mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-25 18:29:26 +08:00
fix(gltf): flip vertically by default (#9694)
This commit is contained in:
@@ -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(¶ms);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user