ok
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#version 130
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec4 vertexColor;
|
||||
|
||||
uniform sampler2D textureSampler;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture(textureSampler, texCoord) * vertexColor;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#version 130
|
||||
|
||||
attribute vec3 vertex;
|
||||
attribute vec4 color;
|
||||
attribute vec2 uv;
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec4 vertexColor;
|
||||
|
||||
uniform mat4 projMat;
|
||||
|
||||
void main() {
|
||||
texCoord = uv;
|
||||
vertexColor = color;
|
||||
gl_Position = projMat * vec4(vertex, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#version 130
|
||||
|
||||
void main() {
|
||||
gl_FragColor = vec4(1, 1, 1, 1);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#version 130
|
||||
|
||||
attribute vec3 vertex;
|
||||
|
||||
uniform mat4 projMat;
|
||||
|
||||
void main() {
|
||||
gl_Position = projMat * vec4(vertex, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#version 130
|
||||
|
||||
varying vec4 vertexColor;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = vertexColor;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#version 130
|
||||
|
||||
attribute vec3 vertex;
|
||||
attribute vec4 color;
|
||||
|
||||
varying vec4 vertexColor;
|
||||
|
||||
uniform mat4 projMat;
|
||||
|
||||
void main() {
|
||||
vertexColor = color;
|
||||
gl_Position = projMat * vec4(vertex, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#version 130
|
||||
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform sampler2D textureSampler;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture(textureSampler, texCoord);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#version 130
|
||||
|
||||
attribute vec3 vertex;
|
||||
attribute vec2 uv;
|
||||
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform mat4 projMat;
|
||||
|
||||
void main() {
|
||||
texCoord = uv;
|
||||
gl_Position = projMat * vec4(vertex, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#version 130
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec4 vertexColor;
|
||||
|
||||
uniform sampler2D textureSampler;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture(textureSampler, texCoord) * vertexColor;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#version 130
|
||||
|
||||
attribute vec3 vertex;
|
||||
attribute vec4 color;
|
||||
attribute vec2 uv;
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec4 vertexColor;
|
||||
|
||||
uniform mat4 projMat;
|
||||
|
||||
void main() {
|
||||
texCoord = uv;
|
||||
vertexColor = color;
|
||||
gl_Position = projMat * vec4(vertex, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user