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