Raytracing: How to trace shadow rays from a circle?
I’m trying to code my own raytracer for a particle system to draw particles that are a bit overlapped by others with a darker color. Particle is a circle. So I want to trace ray from each particle’s center to a light source. My HLSL:
Raytracing: How to trace rays from a circle?
I’m trying to code my own raytracer for a particle system to draw particles that are a bit overlapped by others with a darker color. Particle is a circle. So I want to trace ray from each particle’s center to a light source. My HLSL: