14 #ifndef OSGUTIL_TANGENTSPACEGENERATOR_
15 #define OSGUTIL_TANGENTSPACEGENERATOR_
17 #include <osgUtil/Export>
19 #include <osg/ref_ptr>
20 #include <osg/Referenced>
22 #include <osg/Geometry>
43 void generate(
osg::Geometry *geo,
int normal_map_tex_unit = 0);
68 int iA,
int iB,
int iC);
virtual ~TangentSpaceGenerator()
const osg::Vec4Array * getBinormalArray() const
void setTangentArray(osg::Vec4Array *array)
osg::Vec4Array * getTangentArray()
osg::ref_ptr< osg::UIntArray > indices_
osg::Vec4Array * getBinormalArray()
const osg::Vec4Array * getNormalArray() const
osg::ref_ptr< osg::Vec4Array > N_
osg::ref_ptr< osg::Vec4Array > B_
void setNormalArray(osg::Vec4Array *array)
osg::Vec4Array * getNormalArray()
osg::IndexArray * getIndices()
void setBinormalArray(osg::Vec4Array *array)
const osg::Vec4Array * getTangentArray() const
TangentSpaceGenerator & operator=(const TangentSpaceGenerator &)
Shader generator framework.
osg::ref_ptr< osg::Vec4Array > T_