karansher / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
0 stars 0 forks source link

Calculating "directional" and "point" light rays #16

Open FarzanehCS opened 2 years ago

FarzanehCS commented 2 years ago

How would I calculate the vector of these lights? Since for a light, we only have its intensity and an input query point q! I am not sure how I should compute "el" here?

image
Gostas commented 2 years ago

There is an extra attribute in the PointLight and DirectionalLight classes