diff options
author | numzero <numzer0@yandex.ru> | 2020-11-22 18:25:41 +0300 |
---|---|---|
committer | lhofhansl <larsh@apache.org> | 2020-11-26 12:49:10 -0800 |
commit | cdcf7dca7c9afb329d49f2016964f77ac379ed67 (patch) | |
tree | e4ca73d6130a55ce1445ef7da373fb7e830b1e98 /client | |
parent | be59668f4743bb3bf85b37a188ffc1759601c152 (diff) | |
download | minetest-cdcf7dca7c9afb329d49f2016964f77ac379ed67.tar.gz minetest-cdcf7dca7c9afb329d49f2016964f77ac379ed67.tar.bz2 minetest-cdcf7dca7c9afb329d49f2016964f77ac379ed67.zip |
Sky: support GLES2
IrrLicht built-in shader is broken, have to write my own
Diffstat (limited to 'client')
-rw-r--r-- | client/shaders/stars_shader/opengl_fragment.glsl | 6 | ||||
-rw-r--r-- | client/shaders/stars_shader/opengl_vertex.glsl | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/client/shaders/stars_shader/opengl_fragment.glsl b/client/shaders/stars_shader/opengl_fragment.glsl new file mode 100644 index 000000000..a9ed741bf --- /dev/null +++ b/client/shaders/stars_shader/opengl_fragment.glsl @@ -0,0 +1,6 @@ +uniform vec4 starColor; + +void main(void) +{ + gl_FragColor = starColor; +} diff --git a/client/shaders/stars_shader/opengl_vertex.glsl b/client/shaders/stars_shader/opengl_vertex.glsl new file mode 100644 index 000000000..77c401f34 --- /dev/null +++ b/client/shaders/stars_shader/opengl_vertex.glsl @@ -0,0 +1,4 @@ +void main(void) +{ + gl_Position = mWorldViewProj * inVertexPosition; +} |