diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-02-09 17:01:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-13 14:49:09 +0000 |
commit | 3865711259e25a90a1d72480f848863ada202067 (patch) | |
tree | 4fc40848238f7d38123fa19032513751923e6bea /src/sksl/README | |
parent | b34727f1a3150de2e3e95beb79900a0a848a984c (diff) |
Replaced all calls to fragmentPosition() with sk_FragCoord
Change-Id: I2ed4558aea74b3ae7ee11dfe4736cdbcb16ae49e
Reviewed-on: https://skia-review.googlesource.com/8278
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/README')
-rw-r--r-- | src/sksl/README | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sksl/README b/src/sksl/README index 98103fa64f..25b07c18e1 100644 --- a/src/sksl/README +++ b/src/sksl/README @@ -34,8 +34,10 @@ following differences between SkSL and GLSL: * no #version statement is required, and will be ignored if present * the output color is sk_FragColor (do not declare it) * use sk_VertexID instead of gl_VertexID +* the fragment coordinate is sk_FragCoord, and is always relative to the upper + left. * lowp, mediump, and highp are always permitted (but will only be respected if - you run on a GLES device) + you run on a device which supports them) * you do not need to include ".0" to make a number a float (meaning that "vec2(x, y) * 4" is perfectly legal in SkSL, unlike GLSL where it would often have to be expressed "vec2(x, y) * 4.0". There is no performance penalty for |