diff --git a/site/docs/user/sksl.md b/site/docs/user/sksl.md index 13b3589b12..5a6f9f031d 100644 --- a/site/docs/user/sksl.md +++ b/site/docs/user/sksl.md @@ -27,17 +27,17 @@ object that you bind (in C++) and sample (in SkSL) is an `SkShader`. Skia has simple methods for creating an `SkShader` from an `SkImage`, so it's easy to use images in your runtime effects: - + Because the object you bind and sample is an `SkShader`, you can directly use any Skia shader, without necessarily turning it into an image (texture) first. For example, you can sample a linear gradient: - + You can even sample another runtime effect: - + --- @@ -75,7 +75,7 @@ alpha decreases. Unpremultipled colors cause the gradient to display incorrectly, with a shift in hue as the alpha changes. This hue shift is caused by Skia clamping the color's RGB values to its alpha. - + --- @@ -95,4 +95,4 @@ coordinates based on the ones passed to you, the scale is correct. However, if y those coordinates (to do some kind of re-mapping of the image), remember that the coordinates are scaled up to the dimensions of the image: - +