写了个shader,在某些手机无法运行,提示illegal property name:
properties:
u_edge: { value: 0.05 }
u_dissolveMap: { value: white }
u_clickPositions: { value: [0, 0, 0, 0] }
u_datas: { value: [0, 0, 0, 0] }
u_clickCount: { value: 0 }
alphaThreshold: { value: 0.5 }
CCProgram sprite-fs %{
precision highp float;
#include <builtin/internal/embedded-alpha>
#include <builtin/internal/alpha-test>
in vec4 color;
uniform Tex {
vec4 u_clickPositions[9];
vec4 u_datas[9];
float u_edge;
int u_clickCount;
};
illegal property name: u_clickCount.
illegal property name: u_clickPositions.
illegal property name: u_datas.