MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / getLightDiffuseColourWithPower

Method getLightDiffuseColourWithPower

OgreMain/src/OgreAutoParamDataSource.cpp:196–206  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers 1

_updateAutoParamsMethod · 0.80

Calls 1

getDiffuseColourMethod · 0.45

Tested by

no test coverage detected