refactor(assets): 将着色器路径从 "shaders" 改为 "assets/shaders" refactor(build): 统一各平台资源目录复制逻辑为 assets 目录 style: 更新 .gitignore 忽略参考代码目录和 .pvf 文件
13 lines
230 B
GLSL
13 lines
230 B
GLSL
#ifdef GL_ES
|
|
precision mediump float;
|
|
#endif
|
|
|
|
varying vec2 v_texCoord;
|
|
varying vec4 v_color;
|
|
|
|
uniform sampler2D u_texture;
|
|
|
|
void main() {
|
|
vec4 texColor = texture2D(u_texture, v_texCoord);
|
|
gl_FragColor = texColor * v_color;
|
|
} |