missing semicolon after UBO 'xxxx' declaration


missing semicolon after UBO ‘xxxx’ declaration

https://forum.cocos.org/t/creator-2-3-shader/88541

Cocos Creator 2.3 中对shader的语法要求更为严格

UBO后边必须要加分号:

1
2
3
4
5
6
7
uniform XXXXX {
float textureWidth;
float speed;
float amplitude;
float wave;
vec2 startPos;
}

改为:

1
2
3
4
5
6
7
uniform XXXXX {
float textureWidth;
float speed;
float amplitude;
float wave;
vec2 startPos;
};