Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*
|
||||
* ViewDependentShadow codes Copyright (C) 2008 Wojciech Lewandowski
|
||||
@@ -27,13 +27,13 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
/** Convenient typedef used in definition of ViewData struct and methods */
|
||||
typedef StandardShadowMap ThisClass;
|
||||
/** Convenient typedef used in definition of ViewData struct and methods */
|
||||
typedef DebugShadowMap BaseClass;
|
||||
typedef DebugShadowMap BaseClass;
|
||||
|
||||
/** Classic OSG constructor */
|
||||
StandardShadowMap();
|
||||
|
||||
/** Classic OSG cloning constructor */
|
||||
StandardShadowMap(const StandardShadowMap& ssm,
|
||||
StandardShadowMap(const StandardShadowMap& ssm,
|
||||
const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
/** Declaration of standard OSG object methods */
|
||||
@@ -53,24 +53,24 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
|
||||
// Texture Indices are changed by search and replace on shader source
|
||||
// Carefully order these calls when changing both base and shadow indices
|
||||
// In worst case when intend to swap indices
|
||||
// one will have to call these methods more than once
|
||||
// with one extra pass to change index to unused value to avoid
|
||||
// In worst case when intend to swap indices
|
||||
// one will have to call these methods more than once
|
||||
// with one extra pass to change index to unused value to avoid
|
||||
// unwanted superfluous replace:
|
||||
//
|
||||
// Example: Imagine we want to swap base(0) and shadow(1) indices:
|
||||
// We have to do an extra step to make sure both do not end up as 1
|
||||
//
|
||||
//
|
||||
// // initialy change base to something else than 1
|
||||
// setBaseTextureCoordIndex( 100 );
|
||||
// setBaseTextureCoordIndex( 100 );
|
||||
// // now search and replace all gl_TexCord[1] to gl_TexCord[0]
|
||||
// setShadowTextureCoordIndex( 0 );
|
||||
// // finally change base from 100 to 0
|
||||
// setBaseTextureCoordIndex( 1 );
|
||||
// setBaseTextureCoordIndex( 1 );
|
||||
|
||||
void setBaseTextureCoordIndex( unsigned int index )
|
||||
{ updateTextureCoordIndices( _baseTextureCoordIndex, index );
|
||||
_baseTextureCoordIndex = index; }
|
||||
_baseTextureCoordIndex = index; }
|
||||
|
||||
unsigned int getBaseTextureCoordIndex( void ) const
|
||||
{ return _baseTextureCoordIndex; }
|
||||
@@ -96,14 +96,14 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
|
||||
osg::Light* getLight( void )
|
||||
{ return _light.get(); }
|
||||
|
||||
|
||||
const osg::Light* getLight( void ) const
|
||||
{ return _light.get(); }
|
||||
|
||||
osg::Shader * getShadowVertexShader()
|
||||
osg::Shader * getShadowVertexShader()
|
||||
{ return _shadowVertexShader.get(); }
|
||||
|
||||
osg::Shader * getShadowFragmentShader()
|
||||
osg::Shader * getShadowFragmentShader()
|
||||
{ return _shadowFragmentShader.get(); }
|
||||
|
||||
osg::Shader * getMainVertexShader( )
|
||||
@@ -115,10 +115,10 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
void setShadowVertexShader( osg::Shader * shader )
|
||||
{ _shadowVertexShader = shader; }
|
||||
|
||||
void setShadowFragmentShader( osg::Shader * shader )
|
||||
void setShadowFragmentShader( osg::Shader * shader )
|
||||
{ _shadowFragmentShader = shader; }
|
||||
|
||||
void setMainVertexShader( osg::Shader * shader )
|
||||
void setMainVertexShader( osg::Shader * shader )
|
||||
{ _mainVertexShader = shader; }
|
||||
|
||||
void setMainFragmentShader( osg::Shader * shader )
|
||||
@@ -167,11 +167,11 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
|
||||
virtual void cull( );
|
||||
|
||||
virtual void aimShadowCastingCamera(
|
||||
virtual void aimShadowCastingCamera(
|
||||
const osg::BoundingSphere &bounds,
|
||||
const osg::Light *light,
|
||||
const osg::Vec4 &worldLightPos,
|
||||
const osg::Vec3 &worldLightDir,
|
||||
const osg::Vec3 &worldLightDir,
|
||||
const osg::Vec3 &worldLightUp = osg::Vec3(0,1,0) );
|
||||
|
||||
virtual void cullShadowReceivingScene( );
|
||||
@@ -185,11 +185,11 @@ class OSGSHADOW_EXPORT StandardShadowMap : public DebugShadowMap
|
||||
|
||||
virtual void aimShadowCastingCamera( const osg::Light *light,
|
||||
const osg::Vec4 &worldLightPos,
|
||||
const osg::Vec3 &worldLightDir,
|
||||
const osg::Vec3 &worldLightDir,
|
||||
const osg::Vec3 &worldLightUp
|
||||
= osg::Vec3(0,1,0) );
|
||||
};
|
||||
|
||||
|
||||
friend struct ViewData;
|
||||
|
||||
META_ViewDependentShadowTechniqueData( ThisClass, ThisClass::ViewData )
|
||||
|
||||
Reference in New Issue
Block a user