What is the pseudo-code for the structure of a Ray Tracing program?

What is the pseudo-code for the structure of a Ray Tracing program?



For each pixel, do
Compute Viewing Ray
Find 1st object hit by ray and its surface normal n
Set pixel color to value computed from hit point, light, and surface normal n.

Popular posts from this blog

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

What does Latency mean?