diff options
Diffstat (limited to 'client/shaders/default_shader')
-rw-r--r-- | client/shaders/default_shader/opengl_fragment.glsl | 4 | ||||
-rw-r--r-- | client/shaders/default_shader/opengl_vertex.glsl | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/client/shaders/default_shader/opengl_fragment.glsl b/client/shaders/default_shader/opengl_fragment.glsl new file mode 100644 index 000000000..925ab6e1d --- /dev/null +++ b/client/shaders/default_shader/opengl_fragment.glsl @@ -0,0 +1,4 @@ +void main(void) +{ + gl_FragColor = gl_Color; +} diff --git a/client/shaders/default_shader/opengl_vertex.glsl b/client/shaders/default_shader/opengl_vertex.glsl new file mode 100644 index 000000000..0f4609177 --- /dev/null +++ b/client/shaders/default_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;
+}
|