Example #1
0
 void onDraw(const int loops, SkCanvas* canvas) override {
     draw(loops, canvas, SkLightingImageFilter::CreateDistantLitSpecular(GetDistantDirection(),
                                                                         GetWhite(),
                                                                         GetSurfaceScale(),
                                                                         GetKs(),
                                                                         GetShininess()));
 }
Example #2
0
 void onDraw(int loops, SkCanvas* canvas) override {
     draw(loops, canvas, SkLightingImageFilter::CreatePointLitSpecular(GetPointLocation(),
                                                                       GetWhite(),
                                                                       GetSurfaceScale(),
                                                                       GetKs(),
                                                                       GetShininess()));
 }
Example #3
0
 void onDraw(const int loops, SkCanvas* canvas) override {
     draw(loops, canvas, SkLightingImageFilter::CreateSpotLitSpecular(GetSpotLocation(),
                                                                      GetSpotTarget(),
                                                                      GetSpotExponent(),
                                                                      GetCutoffAngle(),
                                                                      GetWhite(),
                                                                      GetSurfaceScale(),
                                                                      GetKs(),
                                                                      GetShininess()));
 }