commit | 04a696455b696aad5e55de65aeb877b7d118b94b | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed May 11 15:12:10 2022 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed May 11 20:27:16 2022 +0000 |
tree | 7824b76dfa84218e4ee283264706539b298ffba0 | |
parent | 415c398a142c4e359d38f39c3c6cbf93c84e66c1 [diff] |
Simplify identity matrix creation. GLSL/SkSL allow creation of a uniform scale matrix by constructing a matrix with a single scalar argument. It will be splatted across the matrix's diagonal. Change-Id: If3410909f8136f3f4c39f7d7208d5bd6066e4e53 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/539047 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>