GLSL Raytracer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
glm
obj
tex
.DS_Store
.gitignore
BVH.h
Makefile
README.md
geometry.h
help.bmp enable reflection and refraction, as well as path tracer Nov 26, 2014
light.h
main.cpp
objloader.cpp
objloader.h
opengl_util.cpp
opengl_util.h
path_trace.bmp
raytrace.frag
raytrace.vert
raytracing.scene
render.frag
render.vert
sampler.cpp
sampler.h
shader.cpp
shader.h
simple_trace.bmp
texture.cpp
texture.h
world.cpp
world.h

README.md

myRaytracer

GLSL Raytracer

Use make to compile the project.

Run:

./render (-bvh) (-path 1) -input raytracing.scene (-output result.bmp)

-bvh: bound volume hierarchy acceleration -path number: replace the simple tracer with path tracer. number specifies maximum number of diffuse material a ray hits. Suggesting number is 1. raytracing.scene is a scene file used to specify the scene. -output path: output the image (only support bitmap).