Skip to content

Commit

Permalink
Update skypbox_offscreen readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldreingruber-dedalus committed Apr 23, 2022
1 parent b089cd2 commit 1846bec
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions wgpu/examples/skybox_offscreen/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# skybox
# skybox offscreen

This animated example demonstrates loading a Wavefront OBJ model, and rendering it with skybox and simple reflections.
It hooks up `winit` mouse controls for camera rotation around the model at the center.
This is the [skybox example](../skybox/README.md) version demonstrating an offscreen canvas rendering approach.

## To Run

WebGPU backend:
```
cargo run --example skybox
cargo run-wasm --example skybox_offscreen
```
WebGL2 backend:
```
cargo run-wasm --example skybox_offscreen --features webgl
```

## Screenshots

![Skybox](./screenshot.png)

0 comments on commit 1846bec

Please sign in to comment.