wgpu/examples/src/skybox
Erich Gubler 765c20235e
refactor: use include_wgsl!(…) more (#6326)
This change uses `include_wgsl!(…)` in usages where an
`include_str!("….wgsl")` was used to construct
a `ShaderModuleDescriptor`'s `source, but the `label` was set to `None`.
This should (1) showcase a nice idiomatic convenience we offer in our
examples better, (2) make code more concise, and (3) get some
automatically generated labels in diagnostics where it seems it won't
hurt.
2024-09-26 08:47:57 +02:00
..
images Fixes for Skybox and All Examples (#4780) 2023-11-27 11:40:37 +01:00
models Move to A Single Example Executable (#4756) 2023-11-23 05:26:42 -05:00
mod.rs refactor: use include_wgsl!(…) more (#6326) 2024-09-26 08:47:57 +02:00
README.md Update examples readme files (#4774) 2023-11-25 22:59:40 +00:00
screenshot_astc.png Fixes for Skybox and All Examples (#4780) 2023-11-27 11:40:37 +01:00
screenshot_bc7.png Fixes for Skybox and All Examples (#4780) 2023-11-27 11:40:37 +01:00
screenshot_etc2.png Fixes for Skybox and All Examples (#4780) 2023-11-27 11:40:37 +01:00
screenshot.png Fixes for Skybox and All Examples (#4780) 2023-11-27 11:40:37 +01:00
shader.wgsl Move to A Single Example Executable (#4756) 2023-11-23 05:26:42 -05:00

skybox

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.

To Run

cargo run --bin wgpu-examples skybox

Screenshots

Skybox