[gtk/wip/baedert/gl-rework: 16/47] gl renderer: Remove some unneeded calculations from shaders
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 16/47] gl renderer: Remove some unneeded calculations from shaders
- Date: Sun, 22 Dec 2019 05:43:16 +0000 (UTC)
commit 50aa56b2045169703ab0cd88b08c95ac1f22b156
Author: Timm Bäder <mail baedert org>
Date: Tue Dec 17 12:39:36 2019 +0100
gl renderer: Remove some unneeded calculations from shaders
gsk/resources/glsl/border.glsl | 2 --
gsk/resources/glsl/color.glsl | 2 --
gsk/resources/glsl/inset_shadow.glsl | 2 --
gsk/resources/glsl/unblurred_outset_shadow.glsl | 2 --
4 files changed, 8 deletions(-)
---
diff --git a/gsk/resources/glsl/border.glsl b/gsk/resources/glsl/border.glsl
index b791dceb4f..6a0ff18024 100644
--- a/gsk/resources/glsl/border.glsl
+++ b/gsk/resources/glsl/border.glsl
@@ -2,8 +2,6 @@
void main() {
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
-
- vUv = vec2(aUv.x, aUv.y);
}
// FRAGMENT_SHADER:
diff --git a/gsk/resources/glsl/color.glsl b/gsk/resources/glsl/color.glsl
index 8163dddfd0..dcd65100a3 100644
--- a/gsk/resources/glsl/color.glsl
+++ b/gsk/resources/glsl/color.glsl
@@ -1,8 +1,6 @@
// VERTEX_SHADER:
void main() {
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
-
- vUv = vec2(aUv.x, aUv.y);
}
// FRAGMENT_SHADER:
diff --git a/gsk/resources/glsl/inset_shadow.glsl b/gsk/resources/glsl/inset_shadow.glsl
index c6518f1aa1..1658559536 100644
--- a/gsk/resources/glsl/inset_shadow.glsl
+++ b/gsk/resources/glsl/inset_shadow.glsl
@@ -1,8 +1,6 @@
// VERTEX_SHADER:
void main() {
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
-
- vUv = vec2(aUv.x, aUv.y);
}
// FRAGMENT_SHADER:
diff --git a/gsk/resources/glsl/unblurred_outset_shadow.glsl b/gsk/resources/glsl/unblurred_outset_shadow.glsl
index e50db29cd3..876ee9eb1e 100644
--- a/gsk/resources/glsl/unblurred_outset_shadow.glsl
+++ b/gsk/resources/glsl/unblurred_outset_shadow.glsl
@@ -1,8 +1,6 @@
// VERTEX_SHADER:
void main() {
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
-
- vUv = vec2(aUv.x, aUv.y);
}
// FRAGMENT_SHADER:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]