OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkShadowShader_DEFINED |
| 9 #define SkShadowShader_DEFINED |
| 10 |
| 11 class SkLights; |
| 12 class SkShader; |
| 13 |
| 14 class SK_API SkShadowShader { |
| 15 public: |
| 16 /** This shader combines the diffuse color in 'diffuseShader' with the shado
ws |
| 17 * determined by the 'povDepthShader' and the shadow maps stored in each of
the |
| 18 * lights in 'lights' |
| 19 */ |
| 20 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader, |
| 21 sk_sp<SkShader> diffuseShader, |
| 22 sk_sp<SkLights> lights); |
| 23 |
| 24 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
| 25 }; |
| 26 |
| 27 #endif |
OLD | NEW |