Change shader versions from 1.10 to 3.30

Minimum OpenGL version is 3.3 Core, so it is reasonable to use GLSL 3.30
This commit is contained in:
AstroSnail 2018-06-07 02:33:32 +01:00
parent 47fe269c76
commit d6bb3305fd
No known key found for this signature in database
GPG Key ID: CEB30DBCFD2D34C6
4 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
#version 110
#version 330
varying vec2 uv_p;
in vec2 uv_p;
void main(void) {
gl_FragColor = vec4(uv_p.xy, 0.5f, 1.0f);

View File

@ -1,9 +1,9 @@
#version 110
#version 330
attribute vec3 position;
attribute vec3 normal;
attribute vec2 uv;
varying vec2 uv_p;
in vec3 position;
in vec3 normal;
in vec2 uv;
out vec2 uv_p;
uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;

View File

@ -1,6 +1,6 @@
#version 110
#version 330
varying vec3 cardial_color;
in vec3 cardial_color;
void main(void) {
gl_FragColor = vec4(cardial_color.xyz, 1.0f);

View File

@ -1,8 +1,8 @@
#version 110
#version 330
attribute vec3 position;
attribute vec3 color;
varying vec3 cardial_color;
in vec3 position;
in vec3 color;
out vec3 cardial_color;
uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;