# Deriving L_o for directional light

This topic is 1092 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I've been reading some ray-tracing book and stumbled upon something that really intrugued me. The author derives the simple dot(N, L) equation for an ideal directional light (assume white light (1,1,1)).

But let's start from the top. The direct illumination formula is this:

http://www.HostMath.com/Show.aspx?Code=L_o(p%2C%20%5Comega_o)%20%3D%20%5Cint_%7B2%5CPi%5E%2B%7D%5E%7B%7D%20f_r(p%2C%20%5Comega_i%2C%20%5Comega_o)%20L_i(p%2C%20%5Comega_i)%20%5Ccos(%5Ctheta_i)%20d%5Comega_i

The final formula for L_o is:

http://www.HostMath.com/Show.aspx?Code=L_o(p%2C%20%5Comega_o)%20%3D%20f_r(p%2C%20l%2C%20%5Comega_o)%20%5Ccos(%5Ctheta_l)

(where l is light'd direction)

The author states that in order for the equation to end up like this, L_i must be:

http://www.HostMath.com/Show.aspx?Code=L_i(p%2C%20%5Comega_i)%20%3D%20%5Cdelta(%5Ccos%5Ctheta_i-cos%5Ctheta_l)%20%5Cdelta(%5Cphi_i-%5Cphi_l)

A is cos(theta_l), B is phi_l. Note that I skipped BRDF f function.

Now my simple question is: why is L_i the way it is? How was it derived?

Edited by maxest

1. 1
2. 2
3. 3
Rutin
15
4. 4
khawk
13
5. 5
frob
12

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633665
• Total Posts
3013245
×