GrComposeLerpEffect.fp 422 B

12345678910111213141516
  1. /*
  2. * Copyright 2019 Google LLC.
  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. in fragmentProcessor? child1;
  8. in fragmentProcessor? child2;
  9. in uniform float weight;
  10. void main() {
  11. sk_OutColor = mix(child1 != null ? process(child1) : sk_InColor,
  12. child2 != null ? process(child2) : sk_InColor,
  13. half(weight));
  14. }