shader: auto versioning and feature selection to allow broader compatibility

This commit is contained in:
minjaesong
2023-09-18 17:54:42 +09:00
parent 232bc4bfbe
commit 13b1942d0e
43 changed files with 58 additions and 72 deletions

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 v_color;
in vec2 v_texCoords;

View File

@@ -1,4 +1,4 @@
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,4 @@
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,4 @@
#version 400
in vec4 v_color; // lightCol

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,4 @@
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,4 @@
#version 400
in vec4 v_color;
in vec2 v_texCoords;
uniform sampler2D u_texture;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,5 +1,4 @@
#version 150
in vec4 a_position;
in vec2 a_texCoord0;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -3,7 +3,7 @@
* http://momentsingraphics.de/BlueNoise.html
*/
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -3,7 +3,7 @@
* http://momentsingraphics.de/BlueNoise.html
*/
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 a_position;
in vec4 a_color;

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 v_color;
in vec2 v_texCoords;
uniform sampler2D u_texture;

View File

@@ -1,4 +1,3 @@
#version 150
in vec4 v_color;
in vec2 v_texCoords;
uniform sampler2D u_texture;

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -2,7 +2,7 @@
*/
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,8 +1,6 @@
/*
*/
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,4 @@
#version 400
#ifdef GL_ES
precision mediump float;
#endif

View File

@@ -1,4 +1,3 @@
#version 150
#ifdef GL_ES
precision mediump float;
#endif