 Timestamp:
 03/21/12 18:36:20 (3 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osgUtil/HighlightMapGenerator
r5328 r13041 1 /* *c++* OpenSceneGraph  Copyright (C) 19982006 Robert Osfield 1 /* *c++* OpenSceneGraph  Copyright (C) 19982006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 21 21 { 22 22 23 /** This cube map generator produces a specular highlight map. 24 * The vectorcolor association is: C = (R dot (L)) ^ n, where C is the 25 * resulting color, R is the reflection vector, L is the light direction 23 /** This cube map generator produces a specular highlight map. 24 * The vectorcolor association is: C = (R dot (L)) ^ n, where C is the 25 * resulting color, R is the reflection vector, L is the light direction 26 26 * and n is the specular exponent. 27 27 */ … … 29 29 public: 30 30 HighlightMapGenerator( 31 const osg::Vec3 &light_direction, 32 const osg::Vec4 &light_color, 33 float specular_exponent, 31 const osg::Vec3 &light_direction, 32 const osg::Vec4 &light_color, 33 float specular_exponent, 34 34 int texture_size = 64); 35 35