From 9a51b07bb7c5e80fbe1e892d8647f1eb793b6329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 8 Feb 2022 22:34:51 +0800 Subject: Put shader files in its pkg dir --- Makefile.am | 2 ++ product.frag | 7 ------- product.vert | 9 --------- productviewer/product.frag | 7 +++++++ productviewer/product.vert | 9 +++++++++ 5 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 product.frag delete mode 100644 product.vert create mode 100644 productviewer/product.frag create mode 100644 productviewer/product.vert diff --git a/Makefile.am b/Makefile.am index 66d35ff..98258ec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,3 +6,5 @@ else libproductviewer_la_CPPFLAGS = -I${includedir} endif include_HEADERS = productviewer.h +pkgdata_DATA = productviewer/product.vert \ + productviewer/product.frag diff --git a/product.frag b/product.frag deleted file mode 100644 index 6bbb24d..0000000 --- a/product.frag +++ /dev/null @@ -1,7 +0,0 @@ -precision mediump float; -varying vec2 v_texcoord; -uniform sampler2D s_texture; -void main() -{ - gl_FragColor = texture2D(s_texture, v_texcoord); -} diff --git a/product.vert b/product.vert deleted file mode 100644 index b040d01..0000000 --- a/product.vert +++ /dev/null @@ -1,9 +0,0 @@ -uniform mat4 u_matrix; -attribute vec4 a_position; -attribute vec2 a_texcoord; -varying vec2 v_texcoord; -void main() -{ - gl_Position = u_matrix * a_position; - v_texcoord = a_texcoord; -} diff --git a/productviewer/product.frag b/productviewer/product.frag new file mode 100644 index 0000000..6bbb24d --- /dev/null +++ b/productviewer/product.frag @@ -0,0 +1,7 @@ +precision mediump float; +varying vec2 v_texcoord; +uniform sampler2D s_texture; +void main() +{ + gl_FragColor = texture2D(s_texture, v_texcoord); +} diff --git a/productviewer/product.vert b/productviewer/product.vert new file mode 100644 index 0000000..b040d01 --- /dev/null +++ b/productviewer/product.vert @@ -0,0 +1,9 @@ +uniform mat4 u_matrix; +attribute vec4 a_position; +attribute vec2 a_texcoord; +varying vec2 v_texcoord; +void main() +{ + gl_Position = u_matrix * a_position; + v_texcoord = a_texcoord; +} -- cgit v1.2.3