raytracer
My own raytracer in one week
Requirements: pillow
, PyGLM
How to use?
git clone https://github.com/linux-admin0001/raytracer.git
cd raytracer
python -m pip install PyGLM pillow tqdm
python main.py
- Enjoy!
Gallery
Perfectly polished metal surface (blur ratio: 0)
Blurred reflections (0 secondary reflected rays to suppress noise, blur ratio: 0.5)
Blurred reflections (20 secondary reflected rays to suppress noise, blur ratio: 0.5)
Blurred reflections (20 secondary reflected rays to suppress noise, blur ratio: 0.1)
Todo
- add rotation matrix
- add blurry reflection
- add visibultity light sources