shader/sprite_frag.glsl

Sun, 11 Aug 2024 15:43:01 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 11 Aug 2024 15:43:01 +0200
changeset 67
0b96fe6d6b5e
parent 50
d8d2e4817db1
permissions
-rw-r--r--

update to recent snapshot of UCX 3.1

15
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 #version 400 core
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2
16
c5dde81b6fb2 add text rendering and demo FPS counter
Mike Becker <universe@uap-core.de>
parents: 15
diff changeset
3 layout(location = 0) out vec4 diffuse;
15
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 in vec2 texcoord;
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
50
d8d2e4817db1 add texture.h
Mike Becker <universe@uap-core.de>
parents: 40
diff changeset
6 uniform sampler2DRect tex;
15
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 void main(void) {
50
d8d2e4817db1 add texture.h
Mike Becker <universe@uap-core.de>
parents: 40
diff changeset
9 diffuse = texture(tex, texcoord);
15
362b7659dc76 add shader loading and unloading
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 }

mercurial