Searched refs:halfwayVectorLength (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DFELighting.cpp199 float halfwayVectorLength = halfwayVector.length(); local
201 lightStrength = m_specularConstant * halfwayVector.z() / halfwayVectorLength;
203 lightStrength = m_specularConstant * powf(halfwayVector.z() / halfwayVectorLength, m_specularExponent);
217 float halfwayVectorLength = halfwayVector.length(); local
219 lightStrength = m_specularConstant * (normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength);
221 lightStrength = m_specularConstant * powf((normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength), m_specularExponent);

Completed in 299 milliseconds