rt = new cc.RenderTexture();
rt.initWithSize(512,512);
rtcamera.targetTexture = rt;
material.effect.setProperty(‘texture’, rt);
然后报错
Simulator: E/jswrapper (4340): [ERROR] (…\cocos\scripting\js-bindings\manual\jsb_opengl_manual.cpp, 4340): ccBindTexture((GLenum)p[1], (GLuint)p[2]); GL error 0x500: GL_INVALID_ENUM