大约有 12 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0034 秒)
...ht; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_T*/0x2803,this._wrapModeV); this._setFilterMode(this._filterMode); var gl=LayaGL.instance; WebGLContext.bindTextur...
来源: Laya_社区 发布时间: 20190809
...per(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修...
来源: Laya_社区 发布时间: 20180531
...进去应该是因为 var canRead=(gl.checkFramebufferStatus(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40)===/*laya.webgl.WebGLContext.FRAMEBUFFER_COMPLETE*/0x8CD5); if (!canRead){ gl.bindFramebuffer(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40,null); return null; }; canRead为false,这个要...
来源: Laya_社区 发布时间: 20180508
...tor2; import Vector3 = Laya.Vector3; import Vector4 = Laya.Vector4; import WebGLContext = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); ...
来源: Laya_社区 发布时间: 20180201
... super(vs, ps, "coolDownShader"); } } import WebGLContext = laya.webgl.WebGLContext; import Value2D = laya.webgl.shader.d2.value.Value2D; import CONST3D2D = laya.webgl.utils.CONST3D2D; export class coolDownShaderValue extends Value2D { publ...
来源: Laya_社区 发布时间: 20170606
...fer=new VertexBuffer3D(vertexDeclaration,this._numberVertices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuff...
来源: Laya_社区 发布时间: 20180113
... } 会报错: Uncaught TypeError: Cannot read property '_color' of null at WebGLContext2D.__proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.RenderSprite._initRen...
来源: Laya_社区 发布时间: 20171214
WebGL 绘制图形报错 问题是WebGLContext2D的fillRect报错 代码如下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya...
来源: Laya_社区 发布时间: 20170216
...ods Show Inherited Protected Methods MethodDefined By _renderCamera(gl:WebGLContext, state:RenderState, baseCamera:BaseCamera):void[override] VRScene _renderDebug(gl:WebGLContext, state:RenderState):voidBaseSceneEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added...
来源: laya_api 发布时间: 20170422
...新排序。SpriteProtected Methods MethodDefined By _renderDebug(gl:WebGLContext, state:RenderState):voidBaseSceneEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added添加到父对象后调度。Node click鼠标点击对象后调度。Sprite display加入节...
来源: laya_api 发布时间: 20170422