I came across your videos on YouTube recently, so I’m stoked to see that you’ve made a post here too!
Keep up the good work, always happy to see more Luau-based rendering solutions.
really cool to see another path tracer on the platform. honestly shows the talent of some developers.
ive been working on one on and off for about 8 months now also with help from slel and a few others who have worked with him. still planning on some stuff, like refraction, and denoising
one issue i have tho is with my sun light, where currently i check if the dot product between a bounced ray that goes into the sky and the sun is less than the suns size, which is a really meh approach. so i wanna ask how you went around it, especially for the soft shadows from the sun. the method i use does achieve a similar effect to what you have but the shadows are far softer and take way more samples to render
Hi, the way i did it is by casting a ray directly to the sun (using Lighting:GetSunDirection()) and then i check if it hits anything, if it doesnt hit anything then you know that its lit up by the sun.
And the way i achieve the soft shadows are done by offsetting the rays directions very slightly. This can be achieved by lerping the sun direction to a random direction by a very small amount (i think mine is 0.05).
thx to Sle_l and the others for making RADIUS path tracer, since my path tracer pretty much uses their refraction system. (I will probably replace them with my own later)
and also thx to Ethanthegrand for making CanvasDraw, since this project uses CanvasDraw to render the pixels