Hello friends!
I’m working with Lua in Cocos IDE under Windows. I try to apply shaders to buttons that I import from Cocos Studio.
Assume I access the button like that
local button=self.lohh:getChildByName("Play")
I tried to apply my shader the following 4 ways and nothing works
button:getVirtualRenderer():setGLProgramState(self.glprogramstate)
and
button:setGLProgramState(self.glprogramstate)
and
button:getVirtualRenderer():setGLProgram(pProgram)
and
button:setGLProgram(pProgram)
None of them works. How can I achieve my goal?