News for hackers. Stuff that matters.
Re:From 0 to glTF with WebGPU: Basic Materials and Textures by nox101 on Thursday May 02, 2024 @10:48AM (#40236940)
Show us ... I think you'll find you're wrong
Re:From 0 to glTF with WebGPU: Basic Materials and Textures by dusted on Thursday May 02, 2024 @05:14PM (#40241432)
Re:From 0 to glTF with WebGPU: Basic Materials and Textures by Jasper_ on Thursday May 02, 2024 @05:23PM (#40241514)
Kinda. SDL_renderer is a level on top of the raw GPU API, which is what WebGPU is targeted at. Feel free to use Canvas2DRenderingContext or any other rendering libraries (e.g. Phaser, Pixi.js) to achieve a similar line count to what you're seeing with SDL_renderer.

Also, you might struggle to implement glTF and PBR materials with the same line count with SDL_renderer.

Re:From 0 to glTF with WebGPU: Basic Materials and Textures by nox101 on Sunday May 05, 2024 @08:03PM (#40269800)
no, no rendering code is shown. The code is calling into some class called Ball whuch itself is using a library. if you're going to rely on a library then there are plenty of js libraries that will abstract to few lines or you could even use canvas 2d