diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2016-02-07 04:08:43 +0100 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-02-08 03:57:42 -0500 |
commit | b44da4916aa09b27155ce6675cccbcc128b5a66c (patch) | |
tree | be51c3a097e1371cb126bf1516e81aaad20bb768 /client/shaders/selection_shader/opengl_vertex.glsl | |
parent | 430195381d8d7254a7b8cdcf6b50769c2c598329 (diff) | |
download | minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.tar.gz minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.tar.bz2 minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.zip |
Cleanup selection mesh code, add shaders for halo and selection boxes
Diffstat (limited to 'client/shaders/selection_shader/opengl_vertex.glsl')
-rw-r--r-- | client/shaders/selection_shader/opengl_vertex.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/shaders/selection_shader/opengl_vertex.glsl b/client/shaders/selection_shader/opengl_vertex.glsl new file mode 100644 index 000000000..0f4609177 --- /dev/null +++ b/client/shaders/selection_shader/opengl_vertex.glsl @@ -0,0 +1,9 @@ +uniform mat4 mWorldViewProj;
+
+void main(void)
+{
+ gl_TexCoord[0] = gl_MultiTexCoord0;
+ gl_Position = mWorldViewProj * gl_Vertex;
+
+ gl_FrontColor = gl_BackColor = gl_Color;
+}
|