Skip to content

flecs-hub/flecs-systems-sokol

Repository files navigation

flecs-systems-sokol

Sokol based rendering module for Flecs. This renderer should only be used as example code or for demonstration purposes and is not intended or ready for production.

Features

  • Runs on webasm, macOS, Linux, Windows
  • Box & Rectangle primitives
  • Automatic instancing
  • Phong shading model
  • Directional (sun) light
  • Ambient light
  • Emissive & shiny materials
  • Depth prepass
  • Shadow mapping
  • Atmosphere rendering
  • Post process effects:
    • Exponential fog
    • Ambient occlusion
    • Bloom
    • HDR & gamma correction

Future work

  • Cascading shadow maps
  • Exponential height fog
  • PBR
  • Lights (spot/omni, multiple lights)
  • More primitive shapes
  • Meshes
  • Textures

Examples

Playground

image

City demo

Screen Shot 2023-03-20 at 12 25 03 PM

Tower defense demo

Screen Shot 2023-03-20 at 12 15 08 PM

About

Sokol based rendering module for Flecs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages