commit | f893df91d64d1ba7b56fc868c62e5f838e35195c | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Tue Nov 09 10:10:45 2021 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Tue Nov 09 21:13:10 2021 +0000 |
tree | 4d4fc2c270370eb7d8abf91e9988ad40685c5ecc | |
parent | 612c73329bc5a996cbae81bd711e7488ec12a5d7 [diff] |
Clamp lighting dot product in paint_alpha_normals_rt Fixes inconsistent results in other color types/spaces, where the output can be negative. Change-Id: I8a346cf7bb02cb298c11d658948c117d74b6ddaa Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469359 Auto-Submit: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: John Stiles <johnstiles@google.com>