Added ShadowMap::s/getAmbientBias, updated NEWS and wrappers

This commit is contained in:
Robert Osfield
2007-06-15 12:59:22 +00:00
parent f4c4ba9d10
commit 08d3b13430
4 changed files with 64 additions and 3 deletions

View File

@@ -36,8 +36,13 @@ class OSGSHADOW_EXPORT ShadowMap : public ShadowTechnique
/** Get the texture unit that the shadow texture will be applied on.*/
unsigned int getTextureUnit() const { return _textureUnit; }
/** Set the values for the ambient bias the shader will use.*/
void setAmbientBias(const osg::Vec2& ambientBias );
/** Get the values that are used for the ambient bias in the shader.*/
const osg::Vec2& getAmbientBias() const { return _ambientBias; }
/** initialize the ShadowedScene and local cached data structures.*/
virtual void init();
@@ -60,6 +65,7 @@ class OSGSHADOW_EXPORT ShadowMap : public ShadowTechnique
osg::ref_ptr<osg::Texture2D> _texture;
osg::ref_ptr<osg::StateSet> _stateset;
unsigned int _textureUnit;
osg::Vec2 _ambientBias;
};