|
Revision 13041, 1.3 kB
(checked in by robert, 15 months ago)
|
|
Ran script to remove trailing spaces and tabs
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | #include <osgUtil/HighlightMapGenerator> |
|---|
| 14 | |
|---|
| 15 | using namespace osgUtil; |
|---|
| 16 | |
|---|
| 17 | HighlightMapGenerator::HighlightMapGenerator(const osg::Vec3 &light_direction, |
|---|
| 18 | const osg::Vec4 &light_color, |
|---|
| 19 | float specular_exponent, |
|---|
| 20 | int texture_size) |
|---|
| 21 | : CubeMapGenerator(texture_size), |
|---|
| 22 | ldir_(light_direction), |
|---|
| 23 | lcol_(light_color), |
|---|
| 24 | sexp_(specular_exponent) |
|---|
| 25 | { |
|---|
| 26 | ldir_.normalize(); |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | HighlightMapGenerator::HighlightMapGenerator(const HighlightMapGenerator ©, const osg::CopyOp ©op) |
|---|
| 30 | : CubeMapGenerator(copy, copyop), |
|---|
| 31 | ldir_(copy.ldir_), |
|---|
| 32 | lcol_(copy.lcol_), |
|---|
| 33 | sexp_(copy.sexp_) |
|---|
| 34 | { |
|---|
| 35 | } |
|---|