e595dbc88e
This was SVN commit r5393.
30 lines
635 B
C++
30 lines
635 B
C++
#include "precompiled.h"
|
|
# include "sr_light.h"
|
|
|
|
//===================================== SrLight ================================
|
|
|
|
|
|
SrLight::SrLight ()
|
|
{
|
|
init ();
|
|
}
|
|
|
|
void SrLight::init ()
|
|
{
|
|
spot_exponent = 0;
|
|
spot_direction.set ( 0, 0, -1.0f );
|
|
spot_cutoff = 180;
|
|
constant_attenuation = 1.0f;
|
|
linear_attenuation = 0;
|
|
quadratic_attenuation = 0;
|
|
ambient = SrColor::black;
|
|
diffuse = SrColor::white;
|
|
specular = SrColor::black;
|
|
position = SrVec::k;
|
|
directional = true;
|
|
}
|
|
|
|
|
|
|
|
//================================ End of File =================================================
|