OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:lightStrength
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/
SpotLightSource.cpp
91
float
lightStrength
;
94
lightStrength
= 1.0f; // -cosineOfAngle ^ 0 == 1
97
lightStrength
= -cosineOfAngle; // -cosineOfAngle ^ 1 == -cosineOfAngle
100
lightStrength
= powf(-cosineOfAngle, m_specularExponent);
105
lightStrength
*= (paintingData.coneCutOffLimit - cosineOfAngle) / (paintingData.coneCutOffLimit - paintingData.coneFullLight);
107
if (
lightStrength
> 1.0f)
108
lightStrength
= 1.0f;
110
paintingData.colorVector.setX(paintingData.privateColorVector.x() *
lightStrength
);
111
paintingData.colorVector.setY(paintingData.privateColorVector.y() *
lightStrength
);
112
paintingData.colorVector.setZ(paintingData.privateColorVector.z() *
lightStrength
);
[
all
...]
FELighting.cpp
188
float
lightStrength
;
192
lightStrength
= m_diffuseConstant * paintingData.lightVector.z() / paintingData.lightVectorLength;
198
lightStrength
= m_specularConstant * halfwayVector.z() / halfwayVectorLength;
200
lightStrength
= m_specularConstant * powf(halfwayVector.z() / halfwayVectorLength, m_specularExponent);
210
lightStrength
= m_diffuseConstant * (normalVector * paintingData.lightVector) / (normalVectorLength * paintingData.lightVectorLength);
216
lightStrength
= m_specularConstant * (normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength);
218
lightStrength
= m_specularConstant * powf((normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength), m_specularExponent);
222
if (
lightStrength
> 1)
223
lightStrength
= 1;
224
if (
lightStrength
< 0
[
all
...]
Completed in 654 milliseconds