Skip to content

FMRb/go-raytracing

Repository files navigation

go-raytracing

Coding a ray tracing

Following the introctions from Peter Shirley

Ray tracing in one weekend

Resources to understand Ray-tracing

Video explaining steps in detail

youtube video

Explanation of dot product

  1. Vector calculus

Sphere intersection

Example intersection ray-sphere Analytic solution showing the math

Reflection and Refraction

Vector calculation - (20a) formula is plus because of the direction of the normal, however, the program consider the value of "i - cos(theta)n" as sign for the direction of the normal is passed by the method calling the refract function. - (20b) Appy Pitagoras and use "n" as the direction of the vector. Ray tracer refraction with medium

Releases

No releases published

Packages

No packages published

Languages