HomeSort by relevance Sort by last modified time
    Searched refs:lightStrength (Results 1 - 2 of 2) sorted by null

  /external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
SpotLightSource.cpp 82 float lightStrength;
84 lightStrength = -cosineOfAngle; // -cosineOfAngle ^ 1 == -cosineOfAngle
86 lightStrength = powf(-cosineOfAngle, m_specularExponent);
90 lightStrength *= (paintingData.coneCutOffLimit - cosineOfAngle) / (paintingData.coneCutOffLimit - paintingData.coneFullLight);
92 if (lightStrength > 1.0f)
93 lightStrength = 1.0f;
95 paintingData.colorVector.setX(paintingData.privateColorVector.x() * lightStrength);
96 paintingData.colorVector.setY(paintingData.privateColorVector.y() * lightStrength);
97 paintingData.colorVector.setZ(paintingData.privateColorVector.z() * lightStrength);
FELighting.cpp 191 float lightStrength;
195 lightStrength = m_diffuseConstant * paintingData.lightVector.z() / paintingData.lightVectorLength;
201 lightStrength = m_specularConstant * halfwayVector.z() / halfwayVectorLength;
203 lightStrength = m_specularConstant * powf(halfwayVector.z() / halfwayVectorLength, m_specularExponent);
213 lightStrength = m_diffuseConstant * (normalVector * paintingData.lightVector) / (normalVectorLength * paintingData.lightVectorLength);
219 lightStrength = m_specularConstant * (normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength);
221 lightStrength = m_specularConstant * powf((normalVector * halfwayVector) / (normalVectorLength * halfwayVectorLength), m_specularExponent);
225 if (lightStrength > 1)
226 lightStrength = 1;
227 if (lightStrength < 0
    [all...]

Completed in 38 milliseconds