Skip to content

wherefree/ToyRayTracerOnGPU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToyRayTracerOnGPU

A toy ray tracer on GPU, achieve by OpenGL. First git on https://github.com/Kitcham/ToyRayTracer/tree/OnGPU. This is a Graduation Project coded by me and Kitcham.

Finished

  • package OpenGL pipe as a ray tracer pipe
  • build BVH on CPU, run on GPU
  • base ray tracing
  • Monte Carlo Integration

Todo

  • Data Struct simplify
  • optimization shader 'if' and 'for'

这是一个简易的基于蒙特卡洛积分的光线追踪渲染器,由OpenGL实现。这个工程为我与Kitcham 的本科毕业设计。

已完成

  • 将OpenGL管线封装为光线追踪渲染管线
  • 用C++在CPU端实现BVH构建, 用GLSL在GPU实现BVH搜索
  • 在shader上实现了基本的光线追踪迭代计算
  • 在shader上实现了基于蒙特卡洛积分的光照计算

About

A toy ray tracer on OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 77.4%
  • C 21.6%
  • Other 1.0%