Beispiel #1
0
 void onDraw(const int loops, SkCanvas* canvas) override {
     draw(loops, canvas, SkLightingImageFilter::CreateSpotLitDiffuse(GetSpotLocation(),
                                                                     GetSpotTarget(),
                                                                     GetSpotExponent(),
                                                                     GetCutoffAngle(),
                                                                     GetWhite(),
                                                                     GetSurfaceScale(),
                                                                     GetKd()));
 }
Beispiel #2
0
 void onDraw(int loops, SkCanvas* canvas) override {
     draw(loops, canvas, SkLightingImageFilter::CreateSpotLitSpecular(GetSpotLocation(),
                                                                      GetSpotTarget(),
                                                                      GetSpotExponent(),
                                                                      GetCutoffAngle(),
                                                                      GetWhite(),
                                                                      GetSurfaceScale(),
                                                                      GetKs(),
                                                                      GetShininess()));
 }