GridVids
Sign in with YouTube

Coding Adventure: Ray Tracing

Sebastian Lague Apr 1, 2023 11:36
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

I tried creating a custom ray/path tracing renderer. Featuring: maths, shaders, and cats! This project was written in C# and HLSL, and uses the Unity game engine. Support my work (and get early access to new videos and source code) on Patreon or Nebula * Patreon: https://www.patreon.com/SebastianLague * Nebula: https://go.nebula.tv/sebastianlague Source Code: * GitHub: https://github.com/SebLague/Ray-Tracing/tree/Episode01 Credits and References: * https://raytracing.github.io * https://blog.demofox.org/2020/05/25/casual-shadertoy-path-tracing-1-basic-camera-diffuse-emissive/ * Music: https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/Ray-Tracing.txt Chapters: Intro Cameras and Rays The Pixel Shader Drawing a Sphere Multiple Spheres, and Colour! Two Types of Reflections Experimenting with Randomness Random Hemisphere Directions The Trace Function Testing Lights Chair Thief Progressive Rendering A Simple Sky Lambert’s Cosine Law Cosine Weighted Rays Triangles Some Tests Specular Reflections Tomatoes and Glossiness Blur and Anti-Aliasing Depth of Field The End
Education