[]自定义shader 在未指定webgl 模式下 setIBVB参数应该如何设置

//重写渲染函数
public //重写渲染函数
public customRender(context:Laya.RenderContext,x:number,y:number):void{
this.shaderValue.iTime += this.animeValue;
let webgl2d = context.ctx instanceof Laya.WebGLContext2D
if( webgl2d)
(context.ctx as Laya.WebGLContext2D).setIBVB( x, y, this.iBuffer, this.vBuffer, this.iNum,null, WaterFlowShader.shader, this.shaderValue, 0, 0);
}
已邀请:

要回复问题请先

商务合作
商务合作