Skip to content

amodi04/RayTracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTracing

A realtime ray tracer built in the Unity game engine. The ray tracer includes various methods to produce photorealistic results.

Currently the ray tracer implements the following features:

  1. Plane intersection
  2. Sphere intersection
  3. Triangle intersection
  4. Mesh intersection (not optimised)
  5. Anti-aliasing
  6. Reflection
  7. Directional Light and Shadows
  8. Skybox rendering
  9. Lambert diffuse
  10. Phong specular highlighting
  11. Importance sampling
  12. Emission

This particular ray tracer makes use of compute shaders in order to take advantage of parallel processing on the GPU to speed up compuation.

Next Stages

Currently working on increasing efficiency when rendering 3d models in the scene. Currently able to render spheres, planes, triangles and low-poly models. Higher poly counts slow the tracer to an unusable speed at this stage due to the number of iterations over each poly.

Screenshots

Screenshot-1695729156 Noise in screenshot here shows the ray tracer mid way through rendering. The longer the ray tracer is given, the more accurate the results

Screenshot-1695729249 Screenshot-1695729335

Screenshot-1695730053 Screenshot-1695729979 5000 spheres

About

A ray tracer built in the Unity game engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published