banner
[面包]MrTwoC

[面包]MrTwoC

你好,欢迎来到这个基于区块链的个人博客 名字:面包 / MrTwoc 爱好:跑步(5/10KM)、拿铁咖啡、游戏(Minecraft、Warframe、CS) 兴趣方向:Rust、区块链、图形学、游戏设计与开发
bilibili
steam
email
github

Introduction to Wgsl【One】

Previous Article

Considering that Bevy is currently in a rapidly growing phase and the API is unstable, I plan to first understand the WGPU/WGSL shader language,

and found a suitable tutorial, so I will start learning WGSL + WGPU. Once Bevy stabilizes, I can use Bevy more effectively.

The image below shows the implementation from the tutorial, consisting of a pentagon made up of three shared vertex triangles, along with a texture to create this perspective. It also implements a very simple camera that can move using WASD keys.
The code part can be found in the article's tutorial 5-6 (the FPS display in the title is something I added myself and is not included in the article).

image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.