WebGPU Tutorial - Cube Rendering with Color, Texture and Light Shading

Опубликовано: 19 Ноябрь 2024
на канале: Genka
3,123
91

In this video I show how to render 3D cubes with WebGPU. With different colors, textures and basic point light shading. The cubes can be animated (move/rotate) and have different scales.

A basic 3D cube rendering engine with WebGPU!

Github: https://github.com/tamani-coding/webg...

Don't forget to subscribe and like, if you wanna see more!

(00:00) - Intro
(00:31) - Cube Vertices Data
(01:49) - Cube Transformation
(03:03) - Camera
(03:54) - Scene with a Light
(04:16) - Buffer Summary
(04:41) - Renderer Initialization
(05:22) - Renderer Draw Frame Function
(05:56) - Cube Initialization
(09:00) - Cube Draw Function
(09:32) - Vertex Shader Program
(12:41) - Fragment Shader Program
(14:04) - Result