background shader render progress, replacing shape renderers with texture (haven't created said textures yet)
This commit is contained in:
20
android/assets/shaders/star_vert.glsl
Executable file
20
android/assets/shaders/star_vert.glsl
Executable file
@@ -0,0 +1,20 @@
|
||||
attribute vec4 a_position;
|
||||
attribute vec4 a_color;
|
||||
attribute vec2 a_texCoord0;
|
||||
|
||||
uniform mat4 u_projTrans;
|
||||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
|
||||
varying vec4 vColor;
|
||||
varying vec2 vTexCoord;
|
||||
varying float vTime;
|
||||
varying vec2 vResolution;
|
||||
void main() {
|
||||
vColor = a_color;
|
||||
vTexCoord = a_texCoord0;
|
||||
vTime = time;
|
||||
vResolution = resolution;
|
||||
|
||||
gl_Position = u_projTrans * a_position;
|
||||
}
|
||||
Reference in New Issue
Block a user