Added default values for ambientBias

This commit is contained in:
Robert Osfield 2007-06-15 14:57:17 +00:00
parent b0f5d19996
commit bd6a001dcc

View File

@ -49,13 +49,15 @@ static const char fragmentShaderSource_withBaseTexture[] =
"}\n"; "}\n";
ShadowMap::ShadowMap(): ShadowMap::ShadowMap():
_textureUnit(1) _textureUnit(1),
_ambientBias(0.3f,1.2f)
{ {
} }
ShadowMap::ShadowMap(const ShadowMap& copy, const osg::CopyOp& copyop): ShadowMap::ShadowMap(const ShadowMap& copy, const osg::CopyOp& copyop):
ShadowTechnique(copy,copyop), ShadowTechnique(copy,copyop),
_textureUnit(copy._textureUnit) _textureUnit(copy._textureUnit),
_ambientBias(copy._ambientBias)
{ {
} }