1. 完成了对嵌入式Linux平台支持的相关代码的合并,同时对于OpenGL ES平台的shader进行了重写以适配ES平台,不过暂时还未加入到CMakeLists构建脚本当中,预计在下次提交中加入。
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#version 100
|
||||
precision mediump float;
|
||||
|
||||
varying vec2 v_texCoord;
|
||||
varying vec4 v_myPos;
|
||||
uniform sampler2D s_texture0;
|
||||
uniform vec4 u_channelFlag;
|
||||
uniform vec4 u_baseColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
float isInside =
|
||||
step(u_baseColor.x, v_myPos.x / v_myPos.w)
|
||||
* step(u_baseColor.y, v_myPos.y / v_myPos.w)
|
||||
* step(v_myPos.x / v_myPos.w, u_baseColor.z)
|
||||
* step(v_myPos.y / v_myPos.w, u_baseColor.w);
|
||||
gl_FragColor = u_channelFlag * texture2D(s_texture0, v_texCoord).a * isInside;
|
||||
}
|
||||
Reference in New Issue
Block a user