98 lines
3.2 KiB
Plaintext
98 lines
3.2 KiB
Plaintext
// Filename: pointLight.I
|
|
// Created by: mike (04Feb99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::get_specular
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE Colorf PointLight::get_specular( void ) const
|
|
{
|
|
return _specular;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::set_specular
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PointLight::set_specular( const Colorf& color )
|
|
{
|
|
_specular = color;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::get_constant_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float PointLight::get_constant_attenuation( void ) const
|
|
{
|
|
return _constant_attenuation;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::set_constant_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PointLight::set_constant_attenuation( float att )
|
|
{
|
|
_constant_attenuation = att;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::get_linear_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float PointLight::get_linear_attenuation( void ) const
|
|
{
|
|
return _linear_attenuation;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::set_linear_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PointLight::set_linear_attenuation( float att )
|
|
{
|
|
_linear_attenuation = att;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::get_quadratic_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float PointLight::get_quadratic_attenuation( void ) const
|
|
{
|
|
return _quadratic_attenuation;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PointLight::set_quadratic_attenuation
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PointLight::set_quadratic_attenuation( float att )
|
|
{
|
|
_quadratic_attenuation = att;
|
|
}
|