Пример #1
0
void setLighting(void) {
    DiffuseLight[0] = 0.6; DiffuseLight[1] = 0.6;DiffuseLight[2] = 0.6;DiffuseLight[3] = 1.0;
    AmbientLight[0]= 0.2;AmbientLight[1]= 0.2;AmbientLight[2]= 0.2;AmbientLight[3]= 1.0;
    SpecularLight[0]= 1.0;SpecularLight[1]= 1.0;SpecularLight[2]= 1.0;SpecularLight[3]= 1.0;
    
	Vec3 lgt( cos( L_theta ) * cos( L_phi ), sin( L_theta ) * cos( L_phi ), sin( L_phi ) );
	Vec3 LP=L_dist * lgt;
	LightPosition[0]=LP.x; //set the LightPosition to the specified values
	LightPosition[1]=LP.y;
	LightPosition[2]=LP.z;
	LightPosition[3]=0;

}
Пример #2
0
uint AdjustedLink::targetPageNumber() const
{
  return lgt().destination().pageNumber() -1;
}