Skip to content

MasterMeep/Ray-Tracing-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Directions


This code is meant to be run in unity, it only uses it to store and edit the object posisitions on the scene and nothing else to run the code do the following

  • move all the scripts into your assets folder in a unity 3d project
  • apply the rayTracerScript.cs script to the your camera
  • apply the rayTracerShader.shader script to the Ray Tracing Shader input on the rayTracerScript in your camera
  • add spheres to the scene
  • add the colorSetterScript.cs to the spheres so you can edit their materials
  • add colors to the spheres, and most importantly add at least one sphere with black color, white emission color, and some emission strength (2 is fairly strong)
  • click run and make sure the use shader in scene view is toggled on your camera otherwise it just looks normal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors