bmatthieu3 / wgpu-sky-rendering

A very small example to show how to render allsky projections using wgpu-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wgpu-sky-rendering

A tiny example to show how to render allsky projections using wgpu-rs. Allsky projections are used in many ways to represented the earth/sky. This method does the projection per-pixel and runs in realtime.

Aitoff projection rendering of the sky

Supported projections are:

See this link for information about map projections.

How it works

If you want more precision about the algorithm and techniques used:

  • Read this article I wrote on my personal blog.
  • See my talk at ADASS 2020 at this link.

Usage

Play with the left and right keys to change the current projection.

From Source

# Clone the repo
$ git clone https://github.com/bmatthieu3/wgpu-sky-rendering.git
$ cd wgpu-sky-rendering

# Compile
$ cargo build --release

# Run
$ cargo run --release

About

A very small example to show how to render allsky projections using wgpu-rs


Languages

Language:Rust 92.6%Language:GLSL 7.4%