Searched refs:fLightDir (Results 1 – 2 of 2) sorted by relevance
/external/skia/samplecode/ |
D | SampleLitAtlas.cpp | 27 , fLightDir(SkVector3::Make(1.0f, 0.0f, 0.0f)) { in DrawLitAtlasDrawable() 48 SkScalar newX = c * fLightDir.fX - s * fLightDir.fY; in rotateLight() 49 SkScalar newY = s * fLightDir.fX + c * fLightDir.fY; in rotateLight() 51 fLightDir.set(newX, newY, 0.0f); in rotateLight() 187 SkColor3f::Make(1.0f, 1.0f, 1.0f), fLightDir)); in updateLights() 200 SkPoint p1 = SkPoint::Make(centerX + kBgLen * fLightDir.fX, in drawLightDir() 201 centerY - kBgLen * fLightDir.fY); in drawLightDir() 202 SkPoint p2 = SkPoint::Make(centerX + (kBgLen-kSmLen) * fLightDir.fX, in drawLightDir() 203 centerY - (kBgLen-kSmLen) * fLightDir.fY); in drawLightDir() 208 p2.fX - kSmLen * fLightDir.fY, p2.fY - kSmLen * fLightDir.fX, p); in drawLightDir() [all …]
|
/external/skqp/samplecode/ |
D | SampleLitAtlas.cpp | 27 , fLightDir(SkVector3::Make(1.0f, 0.0f, 0.0f)) { in DrawLitAtlasDrawable() 48 SkScalar newX = c * fLightDir.fX - s * fLightDir.fY; in rotateLight() 49 SkScalar newY = s * fLightDir.fX + c * fLightDir.fY; in rotateLight() 51 fLightDir.set(newX, newY, 0.0f); in rotateLight() 187 SkColor3f::Make(1.0f, 1.0f, 1.0f), fLightDir)); in updateLights() 200 SkPoint p1 = SkPoint::Make(centerX + kBgLen * fLightDir.fX, in drawLightDir() 201 centerY - kBgLen * fLightDir.fY); in drawLightDir() 202 SkPoint p2 = SkPoint::Make(centerX + (kBgLen-kSmLen) * fLightDir.fX, in drawLightDir() 203 centerY - (kBgLen-kSmLen) * fLightDir.fY); in drawLightDir() 208 p2.fX - kSmLen * fLightDir.fY, p2.fY - kSmLen * fLightDir.fX, p); in drawLightDir() [all …]
|