r/webgpu • u/UverseDev • 3d ago
A procedural environment in WebGPU: compute-built grass and indirect draws with Rust
This is Wildlands, a test scene for Uverse, the engine I'm developing. The grass, flowers, trees and stones are procedural. The volumetric clouds move and change shape too.
It uses Rust + wgpu and WGSL shaders. Grass blades are rebuilt from seeds on the GPU each frame, while a tiled sky cache spreads the cloud rendering across frames. :)
(and it runs natively as well with Windows/macOS with DirectX 12 and Metal!)
Try the WebGPU demo or natively on your computer!
Check out at Uverse + join waitlist so then you can also try Uverse out! :) -> https://uverse.dev/#waitlist
2
u/Zqin 3d ago
Very cool, I see "Scene Editor", "Game View", "Animation", "Materials", "Code Editor", "Collaboration", "Cinematics", "Visual Scripting", does all of that work yet?
1
u/HuttPilot 3d ago
Wow. How does it use rust, I thought webGPU was for the web?
1
u/lazd 3d ago
The grass looks good, the foliage is full, the mountains in the background look amazing, and the sky is fantastic. But what's the performance gonna be like once you start adding game elements?
I did see pretty noticeable LOD cut ins and there's some Z fighting between the clouds and the mountains, but it's amazing overall and seems to run well!
1
u/LobsterBuffetAllDay 3d ago
Dude not bad at all. I love the care you put into the grass, and tree foliage. It looks good. I raise you something I've been working on-
https://alpine.play.colossum.io/
Try the horvale course, it's got the sort of open world env that I'm eventually gearing up for. Besides looking great, I really do care about the performance across not just desktop / laptop but mobile and tablet too; have you tested your demo on those platforms? What's the fps like?
1
u/WhatNoRobot 3d ago
Impressive. A lot of flicker when moving around
1
u/N7ShepardChronicles 2d ago
Looks fantastic! Excited to see how Uverse evolves! :)
1
u/PanGalacticGargleFan 2d ago
What’s the advantage that Rust gives you here?