标签:layer div for position res range state upd htc
local prog = cc.GLProgram:create("res/shader/light2d.vsh","res/shader/light2d.fsh") prog:link() prog:updateUniforms() local progStat= cc.GLProgramState:create(prog) progStat:setUniformVec2("u_lightPosition",cc.p(GVar.halfWinW,GVar.halfWinH)) progStat:setUniformVec4("u_lightColor",cc.vec4(1,1,1,1)) progStat:setUniformFloat("u_lightRange",100) playerImg:setGLProgram(prog) playerImg:setGLProgramState(progStat)
标签:layer div for position res range state upd htc
原文地址:https://www.cnblogs.com/gamesky/p/10123359.html