Changes

208 bytes added ,  13:44, 23 June 2016
Line 33: Line 33:     
== Fragment Lighting Equation ==
 
== Fragment Lighting Equation ==
There are two lighting equations: One for the primary color and one for the secondary color. Both of them are given in section 3.2.2 of the "Kazakov and Ohbuchi" source below.
+
There are two lighting equations: One for the primary color and one for the secondary color. Both of them are given in section 3.2.2 of the "Kazakov and Ohbuchi" source below. In addition, the fragment lighting can be set up to write to the alpha channel of the primary or secondary color depending on view angle and a LUT. The equations used can be found here: http://mathb.in/64690
    
== Fragment Lighting Output ==
 
== Fragment Lighting Output ==
5

edits