From 1846bec742a32b7b1eca26c69297a11442197f6b Mon Sep 17 00:00:00 2001 From: Harald Reingruber Date: Sat, 23 Apr 2022 23:32:34 +0200 Subject: [PATCH] Update skypbox_offscreen readme.md --- wgpu/examples/skybox_offscreen/README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/wgpu/examples/skybox_offscreen/README.md b/wgpu/examples/skybox_offscreen/README.md index 51dce9d36a..3168669611 100644 --- a/wgpu/examples/skybox_offscreen/README.md +++ b/wgpu/examples/skybox_offscreen/README.md @@ -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)