1. 完成了对嵌入式Linux平台支持的相关代码的合并,同时对于OpenGL ES平台的shader进行了重写以适配ES平台,不过暂时还未加入到CMakeLists构建脚本当中,预计在下次提交中加入。

This commit is contained in:
Misaki
2026-06-25 00:26:49 +08:00
parent f7be85fbf6
commit c036b005f8
21 changed files with 415 additions and 27 deletions
@@ -0,0 +1,16 @@
#version 100
precision mediump float;
varying vec2 v_texCoord;
uniform sampler2D s_texture0;
uniform vec4 u_baseColor;
uniform vec4 u_multiplyColor;
uniform vec4 u_screenColor;
void main()
{
vec4 texColor = texture2D(s_texture0, v_texCoord);
texColor.rgb = texColor.rgb * u_multiplyColor.rgb;
texColor.rgb = (texColor.rgb + u_screenColor.rgb * texColor.a) - (texColor.rgb * u_screenColor.rgb);
gl_FragColor = texColor * u_baseColor;
}