1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
/*
* Modification History
*
* 2000-December-20 Jason Rohrer
* Created.
*/
#ifndef NO_LIGHTING_GL_INCLUDED
#define NO_LIGHTING_GL_INCLUDED
#include "LightingGL.h"
/**
* LightingGL implementation that uses a constant white light everywhere.
*
* @author Jason Rohrer
*/
class NoLightingGL : public LightingGL{
public:
// implements LightingGL interface
void getLighting( Vector3D *inPoint, Vector3D *inNormal,
Color *outColor );
};
inline void NoLightingGL::getLighting( Vector3D *inPoint,
Vector3D *inNormal, Color *outColor ) {
outColor->r = 1.0;
outColor->g = 1.0;
outColor->b = 1.0;
}
#endif
|