Skip to content

Latest commit

History

History
37 lines (26 loc) 路 1.3 KB

File metadata and controls

37 lines (26 loc) 路 1.3 KB

RayTracing

Build Status GitHub GitHub issues Codacy Badge

Simple raytracer implementation with:

  • sphere geometry
  • 3 materials (diffuse, metallic, refractive)
  • hardcoded demo-world
  • naive arguments parser
  • ppm exporter
  • tons of math

Produces .ppm file with rendered camera's view.

How to build

Use CMake.

How to use

Run: <executable> 馃厫 馃厬 馃厭 馃厯 馃厰

where:
馃厫 - render width
馃厬 - render height
馃厭 - smoothing samples (anty-aliasing)
馃厯 - aperture of camera's lens
馃厰 - output path

Example output

Used params: 馃厫=1920 馃厬=1080 馃厭=100 馃厯=0.15