154
edits
Changes
→This Week
**: C<sub>d</sub> - material diffuse color
**: C<sub>s</sub> - material specular color
**: [http://msdn.microsoft.com/en-us/library/bb172279%28v=VS.85%29.aspx Attenuation and Spotlight Factors]***: Atten<sub>i</sub> - attenuation of light i***:: d<sub>i</sub> - distance from light i
**::: d<sub>i</sub> = |L<sub>dir<sub>i</sub></sub>|
**:: a<sub>0</sub> - constant attenuation factor
**:: Atten<sub>i</sub> = [0, 1]
**: Spot<sub>i</sub> - spot factor of light i
**::Spot<sub>i</sub> =
**: L<sub>a<sub>i</sub></sub> - ambient color of light i
**: L<sub>d<sub>i</sub></sub> - diffuse color of light i