/engine-wgpu

WIP wgpu game engine written in Rust

Primary LanguageRust

engine-wgpu Rust

wgpu game engine written in Rust. The goal is to have the entire engine as a separate library to ensure low coupling.

This crate contains the following subcrates:

  • lib: contains structs and helpers that are shared across the entire engine, such as the world, scene, model, mesh, texture, and material structs
  • renderer: contains rendering logic
  • system::io: contains various I/O functions such as loading/saving features and a glTF importer
  • system::particle: particle system, TBA
  • system::physics: physics engine, TBA
  • system::sound: sound engine, TBA

I/O

The program creates a directory run in the current working directory (cwd) where all textures and other resources are expanded at runtime. This directory is cleared upon exit.

World files (world.json) contain relative paths to resources like images. Thus, the scene file must be contained in the same directory as the other resource directories.

The working directory can be set using the WORKING_DIR environment variable.

Roadmap

Renderer

  • egui [17.08.23]
  • dynamic asset loading [17.09.23]
  • point lights
  • gamma correction
  • Instancing
  • Physically based Rendering
  • Normal/Bump maps
  • Shadows
  • Anti-Aliasing
  • face culling
  • frustum culling
  • object outlines
  • SSAO
  • spotlights, directional lights
  • Skybox
  • reflections (both skybox and reflections require cubemaps)
  • Billboarding
  • Decals
  • Tessellation
  • text rendering
  • transparency
  • cascaded shadow mapping
  • percentage-closer filtering (shadows)
  • good bloom
  • deferred shading
  • area lights
  • Image-based lighting
  • HDR, Tone Mapping
  • mip maps

I/O

ECS

  • Implement

Physics

  • Implement Rigid Body physics

Sound

  • Implement basic sound system

Particles

  • Implement basic particle system

UI

  • Asset drag & drop
  • Object picking