refactor into files
This commit is contained in:
14
src/main/assets/quad.fs.glsl
Normal file
14
src/main/assets/quad.fs.glsl
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 300 es
|
||||
#extension GL_OES_EGL_image_external_essl3 : require
|
||||
|
||||
precision mediump float;
|
||||
|
||||
uniform samplerExternalOES uTexture;
|
||||
|
||||
in vec2 vTexCoord;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(uTexture, vTexCoord);
|
||||
}
|
||||
12
src/main/assets/quad.vs.glsl
Normal file
12
src/main/assets/quad.vs.glsl
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 300 es
|
||||
|
||||
layout(location = 0) in vec4 aPosition;
|
||||
layout(location = 1) in vec2 aTexCoord;
|
||||
|
||||
out vec2 vTexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = aPosition;
|
||||
vTexCoord = aTexCoord;
|
||||
}
|
||||
Reference in New Issue
Block a user