dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

Meaning of PointLight's p member #51

Closed Lemiex closed 1 year ago

Lemiex commented 1 year ago

Is the meaning of p the position of the point light relative to the object?

If so then is query point q the position of the object?

Then for PointLight::direction, does this mean that given q (position of object) we are looking for:

  1. d : direction from point light to object
  2. max_t: parameterized distance between light and object?

Thanks!