From Wang Rui, "The new osgShadow and osgFX serializers are attached, and some
modifications of the osgShadow header naming styles as well. The osgDB::Serializer header is also changed to add new Vec2 serializer macros because of the needs of osgShadow classes. It should compile fine on both Windows and Linux. But I have only done a few tests to generate .osgb, .osgt and .osgx formats with these new wrappers."
This commit is contained in:
@@ -275,10 +275,10 @@ ParallelSplitShadowMap::ParallelSplitShadowMap(const ParallelSplitShadowMap& cop
|
||||
{
|
||||
}
|
||||
|
||||
void ParallelSplitShadowMap::setAmbientBias(const osg::Vec2& ambientBias)
|
||||
void ParallelSplitShadowMap::setAmbientBias(const osg::Vec2d& ambientBias)
|
||||
{
|
||||
_ambientBias = ambientBias;
|
||||
if (_ambientBiasUniform ) _ambientBiasUniform->set(_ambientBias);
|
||||
if (_ambientBiasUniform ) _ambientBiasUniform->set(osg::Vec2f(_ambientBias.x(), _ambientBias.y()));
|
||||
}
|
||||
|
||||
void ParallelSplitShadowMap::init(){
|
||||
|
||||
@@ -177,13 +177,13 @@ ShadowMap(copy,copyop),
|
||||
{
|
||||
}
|
||||
|
||||
void SoftShadowMap::setJitteringScale(const float jitteringScale)
|
||||
void SoftShadowMap::setJitteringScale(float jitteringScale)
|
||||
{
|
||||
_jitteringScale = jitteringScale;
|
||||
if (_jitteringScaleUniform.valid()) _jitteringScaleUniform->set(_jitteringScale);
|
||||
}
|
||||
|
||||
void SoftShadowMap::setSoftnessWidth(const float softnessWidth)
|
||||
void SoftShadowMap::setSoftnessWidth(float softnessWidth)
|
||||
{
|
||||
_softnessWidth = softnessWidth;
|
||||
if (_softnessWidthUniform.valid()) _softnessWidthUniform->set(_softnessWidth);
|
||||
|
||||
Reference in New Issue
Block a user