It is the same as above but it uses WebGPU-Native instead of OpenGL on Windows and Ubuntu.
Qt 6 + cgltf + cglm + SDL3_image (WebP) + WebGPU (wgpu-native): Rotating 3D Textured Model Y-Bot (Desktop)
A step-by-step guide to configuring and running a static desktop project integrating Qt 6, WebGPU (wgpu-native) with WGSL shaders, the cgltf library for parsing glTF binary (.glb) files, cglm math library for Perspective, View, and Model (MVP) transformations, depth testing, SDL3_image with WebP, and smooth 90°/s rotation around the Y-axis via QTimer on Windows and Ubuntu.
Note. The 3D model was downloaded from Mixamo, and an optimized low-poly version was created with Blender and exported to y-bot.glb and y-bot.webp.
Source Code
Executables (Windows and Linux)
Live Wasm Demo
[image: 1ca03a2e-1621-4831-8d97-b81a5b7dc4be.gif]