Open main menu

CDOT Wiki β

Changes

GAM670/DPS905 Weekly Schedule 20111

439 bytes added, 16:19, 2 February 2011
This Week
* Vertex Shaders
* Lighting in Vertex Shaders
** [http://msdn.microsoft.com/en-us/library/aa451203.aspx Lighting Formulas]*** Notation***: C<sub>a</sub> - material ambient color***: G<sub>a</sub> - global ambient color***: Atten<sub>i</sub> - attenuation of light i***: L<sub>a</sub><sub>i</sub> - ambient color of light i***:
*** Ambient
***: C<sub>a</sub> * ( G<sub>a</sub> + Atten<sub>i</sub> * sum[ L<sub>a</sub><sub>i</sub> ])
*** Diffuse
***: sum [ C<sub>d</sub> * L<sub>d</sub> * (N . L<sub>dir</sub>) * Atten ]
*** Specular
***:
** [http://msdn.microsoft.com/en-us/library/ff471376%28v=vs.85%29.aspx HLSL Intrinsic Functions]
*** [http://msdn.microsoft.com/en-us/library/bb509630%28v=vs.85%29.aspx normalize()] - normalize a vector