aboutsummaryrefslogtreecommitdiff
path: root/pacc/glsl/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-09 11:41:36 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-09 11:41:36 +0900
commitcb9c866e9f37dfd1e67cd4f8599391676d3d5150 (patch)
tree0c53d834e53b82c646c3f5671aa5e3b75b3ec995 /pacc/glsl/Makefile
parent7809829bb0ce8b30ebdfb018034cab0e5f4b7632 (diff)
pacc: gl: use newer GLSL for GL3.2/GLES3.0
Diffstat (limited to 'pacc/glsl/Makefile')
-rw-r--r--pacc/glsl/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/pacc/glsl/Makefile b/pacc/glsl/Makefile
index 36aace4..a8c0bf9 100644
--- a/pacc/glsl/Makefile
+++ b/pacc/glsl/Makefile
@@ -1,12 +1,18 @@
VSHADERS:=blit.vert
-FSHADERS:=copy.frag color.frag color_trans.frag key.frag fill.frag font.frag
+FSHADERS:=copy.frag color.frag color_trans.frag
DSHEADER:=dsheader
+DS3HEADER:=ds3header
ESHEADER:=esheader
-INCS:=$(addsuffix .inc,$(VSHADERS) $(FSHADERS) $(DSHEADER) $(ESHEADER))
+ES3HEADER:=es3header
+INCS:=$(addsuffix .inc,$(VSHADERS) $(FSHADERS) $(DSHEADER) $(DS3HEADER) $(ESHEADER) $(ES3HEADER))
SHADERS2:=$(addsuffix .ds.vert,$(basename $(VSHADERS)))
+SHADERS2:=$(addsuffix .ds3.vert,$(basename $(VSHADERS)))
SHADERS2+=$(addsuffix .es.vert,$(basename $(VSHADERS)))
+SHADERS2+=$(addsuffix .es3.vert,$(basename $(VSHADERS)))
SHADERS2+=$(addsuffix .ds.frag,$(basename $(FSHADERS)))
+SHADERS2+=$(addsuffix .ds3.frag,$(basename $(FSHADERS)))
SHADERS2+=$(addsuffix .es.frag,$(basename $(FSHADERS)))
+SHADERS2+=$(addsuffix .es3.frag,$(basename $(FSHADERS)))
VALS:=$(addsuffix .vald,$(SHADERS2))
VALIDATOR:=glslangValidator
VFLAGS:=
@@ -21,12 +27,24 @@ val: $(VALS)
%.es.frag: %.frag
cat $(ESHEADER) $< > $@
+%.es3.vert: %.vert
+ cat $(ES3HEADER) $< > $@
+
+%.es3.frag: %.frag
+ cat $(ES3HEADER) $< > $@
+
%.ds.vert: %.vert
cat $(DSHEADER) $< > $@
%.ds.frag: %.frag
cat $(DSHEADER) $< > $@
+%.ds3.vert: %.vert
+ cat $(DS3HEADER) $< > $@
+
+%.ds3.frag: %.frag
+ cat $(DS3HEADER) $< > $@
+
%.vald: %
$(VALIDATOR) $(VFLAGS) $<