bg是精灵的时候
local program = bg:getGLProgram()
local programState = bg:getGLProgramState()
programState:setUniformFloat(program:getUniform("speed").location,0.8)
bg是LayerColor的时候
local program = bg:getGLProgram()
program:setUniformLocationF32(program:getUniform("speed").location,0.2)
local program = bg:getGLProgram()
local programState = bg:getGLProgramState()
programState:setUniformFloat(program:getUniform("speed").location,0.8)
bg是LayerColor的时候
local program = bg:getGLProgram()
program:setUniformLocationF32(program:getUniform("speed").location,0.2)