Skip to content

candela123163/Moonlight

Repository files navigation

Moonlight Renderer

This is a realtime renderer written with cpp 17 and dx12, available for Windows.

moonlight

⭐️Features

  • Support glTF

  • Frustum Culling

  • Metal workflow Physically based rendering(PBR) pbr1 pbr2 pbr3

  • Point & Spot & Directional Lighting and shadowing csm csm

  • Image-based Lighting(IBL)

    • Direct lighting only withoutIBL
    • Plus IBL IBL
  • Percentage closer filtering(PCF)

  • Cascade shadow map(CSM) csm

  • HDR rendering and Tone mapping

  • Bloom bloom

  • Screen space ambient occlusion(SSAO)

    • without SSAO withoutAO
    • with SSAO ssao
  • FXAA (NOT temporal stable, deprecated)

  • Temporal anti-aliasing(TAA)

    • without AA withoutAA
    • Enable TAA taa

📚Dependencies

  • assimp
  • directxtk12
  • nlohmann json
  • imgui

🔧Build

  • You need Windows 10 and Visual Studio 2022 (maybe lower version is work fine too)
  • Double click MoonlightRenderer.sln

🚀Quick Start

  • Take a look at ./config.json, set SceneFile to specity the scene to render.
  • Execute run.bat, this is all!
  • If you want to render your own scene, add a file to ./asset/scenes/, and set it in ./config.json

⚖️License

MIT License

Releases

No releases published

Packages

No packages published

Languages