我想实现类似全局光照的功能,在vert里面添加out,将坐标传给frag,编辑器报错了。
根据报错显示,里面并没有把out翻译成varying
Cut.effect - vs: error EFX2404: glsl1 parser failed: Error: parameter is not allowed here at line 15
2 precision highp float;
3 uniform mat4 cc_matViewProj;
4 uniform mat4 cc_matWorld;
8 attribute vec3 a_position;
9 attribute vec4 a_color;
10 varying vec4 v_color;
12 attribute vec2 a_uv0;
13 varying vec2 v_uv0;
15 out vec2 v_worldPos;
