From beaf176819de174153d484094cde554f9cea9032 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 6 Feb 2020 23:21:22 -0500 Subject: [PATCH] Fix sample shaders : support limited to 3.0ES --- src/shaders/defaultVertexShader.glsl | 2 +- src/shaders/fragmentRed.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shaders/defaultVertexShader.glsl b/src/shaders/defaultVertexShader.glsl index 330cb20..67b0e7b 100644 --- a/src/shaders/defaultVertexShader.glsl +++ b/src/shaders/defaultVertexShader.glsl @@ -1,4 +1,4 @@ -#version 330 core +#version 300 es layout(location = 0) in vec3 vertexPosition_modelspace; void main(){ gl_Position.xyz = vertexPosition_modelspace; diff --git a/src/shaders/fragmentRed.glsl b/src/shaders/fragmentRed.glsl index 15e33a1..d010e6b 100644 --- a/src/shaders/fragmentRed.glsl +++ b/src/shaders/fragmentRed.glsl @@ -1,4 +1,4 @@ -#version 330 core +#version 300 es out vec3 color; void main(){ color = vec3(1,0,0);