TypeError: cc.GLProgram is not a constructor

TypeError: cc.GLProgram is not a constructor.
请问一下Api改成什么了。creator.d.ts 中未查询到。

碰到同样的问题,解了么?

2.0 以后这类接口已经废弃了,使用新的材质系统替代。

请问使用什么材质系统,能否提供个demo

现在是什么

2.1.1 的材质系统,可以参考这个demo。
https://forum.cocos.com/t/cocos-creator-2-1-1/77641

你好
我现在使用的是2.1.1版本

那个新的材质系统,我使用的时候出现了New Effect : Failed to compile vs 0 (ln 14):
‘CC_PMatrix’ : undeclared identifier:
gl_Position = CC_PMatrix * a_position;

的错误

对shader语言不熟,请问为什么没这个环境变量啊