-----------------------------------------------------------------------------
| 194 | } |
| 195 | //----------------------------------------------------------------------------- |
| 196 | const ColourValue AutoParamDataSource::getLightDiffuseColourWithPower( size_t index ) const |
| 197 | { |
| 198 | const Light &l = getLight( index ); |
| 199 | ColourValue scaled( l.getDiffuseColour() ); |
| 200 | Real power = l.getPowerScale(); |
| 201 | // scale, but not alpha |
| 202 | scaled.r *= power; |
| 203 | scaled.g *= power; |
| 204 | scaled.b *= power; |
| 205 | return scaled; |
| 206 | } |
| 207 | //----------------------------------------------------------------------------- |
| 208 | const ColourValue AutoParamDataSource::getLightSpecularColourWithPower( size_t index ) const |
| 209 | { |
no test coverage detected