[gtk/matthiasc/glshader-node: 15/18] gsk: Fix the shader example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/glshader-node: 15/18] gsk: Fix the shader example
- Date: Mon, 28 Sep 2020 16:52:32 +0000 (UTC)
commit a801be3c974882f563111759172afb28aee86075
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 28 12:18:37 2020 -0400
gsk: Fix the shader example
I mixed up my variable names.
gsk/gskglshader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskglshader.c b/gsk/gskglshader.c
index b2efdbce62..1e1df5878d 100644
--- a/gsk/gskglshader.c
+++ b/gsk/gskglshader.c
@@ -121,7 +121,7 @@
* vec4 source1 = GskTexture(u_texture1, uv);
* vec4 source2 = GskTexture(u_texture2, uv);
*
- * fragColor = t * source1 + (1.0 - t) * source2;
+ * fragColor = position * source1 + (1.0 - position) * source2;
* }
* ]|
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]