Skip to content

FredrikH1/RayTracer

Repository files navigation

RayTracer

My own Ray Tracer based on the Cherno's ray tracing series (here). Multiple features added on my own from e.g. the Ray Tracing in One Weekend Series (here).

It currently supports:

  • Spheres and triangles as geometry primitives.
  • Lambertian diffuse materials.
  • Metallic reflective materials.
  • Emissive Materials.
  • Dielectric materials and refraction, using Schlick approximation for reflections on dielectric surfaces.
  • Textures.

In the future I want to add:

  • BVH.
  • Support for triangluated 3D models.
  • GPU ray tracing.

Example Rendered Image

Rendered Spheres and Triangles

Building and Running

Supports Windows 10/11 and Visual Studio 2022. Vulkan SDK required.

  1. Clone recursively: git clone --recursive https://github.com/FredrikH1/RayTracer.git
  2. Run scripts/Setup.bat
  3. Open RayTracing.sln and hit F5 (might need to change configuration to Release or Dist first, Debug is slow)

3rd party libaries

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages