summaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-07 13:47:35 +0100
committerPhil Jones <philj56@gmail.com>2022-06-07 15:31:49 +0100
commit51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch)
treef2b52f0211f9052fefa64e23c6a0d81305391589 /shaders
parent7562d7b539d8013376de2cff494231ba307f4ee1 (diff)
Switch from using (E)GL to wl_shm.
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory (~100 MB). For such a small, simple program that just wants to launch as quickly as possible, wl_shm performs better.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/frag.frag23
-rw-r--r--shaders/vert.vert24
2 files changed, 0 insertions, 47 deletions
diff --git a/shaders/frag.frag b/shaders/frag.frag
deleted file mode 100644
index 88d2337..0000000
--- a/shaders/frag.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 100
-
-/*
- * Copyright (C) 2021 Philip Jones
- *
- * Licensed under the MIT License.
- * See either the LICENSE file, or:
- *
- * https://opensource.org/licenses/MIT
- *
- * I don't think you can really copyright this shader though :)
- */
-
-precision lowp float;
-
-varying vec2 Texcoord;
-
-uniform sampler2D tex;
-
-void main()
-{
- gl_FragColor = texture2D(tex, Texcoord);
-}
diff --git a/shaders/vert.vert b/shaders/vert.vert
deleted file mode 100644
index 3364718..0000000
--- a/shaders/vert.vert
+++ /dev/null
@@ -1,24 +0,0 @@
-#version 100
-
-/*
- * Copyright (C) 2017-2020 Philip Jones
- *
- * Licensed under the MIT License.
- * See either the LICENSE file, or:
- *
- * https://opensource.org/licenses/MIT
- *
- */
-
-precision lowp float;
-
-attribute vec2 position;
-attribute vec2 texcoord;
-
-varying vec2 Texcoord;
-
-void main()
-{
- Texcoord = texcoord;
- gl_Position = vec4(position, 0.0, 1.0);
-}