大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)
...te vec4 a_Position; attribute vec2 a_Textcoord; attribute vec3 a_Normal; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { v_textcoord = a_Textcoord; v_normal = a_Normal; v_wpos = u_WorldMat * a_Position; gl_P...
来源: Laya_社区 发布时间: 20190923
...oginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage....
来源: Laya_社区 发布时间: 20151103
...端打印): iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAABVlJREFUeJzt3UuO4zgQQMHyYO5/Zc/uraaghthEUnbE3pZ/eCDANPV6v9/vH4Cfn59/pl8AcA5BACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQAQBiCAA+ffuA1+v1998Hce5+hPo1ftfffyq3deffv5V3/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9hzCldMPc57ehz/981l9fdNzGKtO/352...
来源: Laya_社区 发布时间: 20181222
...atic _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_MainTex"); CMat._mainCol = Laya.Shader3D.propertyNameToID("u_MainCol"); CMat.initShader(); this.inited = true; } this.setShaderName("CMatShader"); } public ...
来源: Laya_社区 发布时间: 20190814
...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir En...
来源: Laya3.0_文档 发布时间: 20251010
... let e = str.charAt(i); if (e=="1"){ let ii= i+1; pos_arr.push(ii+""); } } return pos_arr; } private updateI...
来源: Laya_社区 发布时间: 20210122
...来加载指定文件资源。[size=14][code]// Loads the file at the specified path and uses it Laya.loader.create([{ url: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = L...
来源: Laya_社区 发布时间: 20211227
...s.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @private 销毁场景并且释放资源 */ garbageCollection() { this._scene.destroy();//销毁场景 this._scene = null; L...
来源: Laya2.0_文档 发布时间: 20210715
...Sprite3D, lineSprite3D: Laya.PixelLineSprite3D, color: Laya.Color): void { if (sprite3D.getComponent(Laya.MeshFilter)) { var mesh: Laya.Mesh = sprite3D.getComponent(Laya.MeshFilter).sharedMesh; var positions: Array<Laya.Vector3> = []; mesh.getPositions(positions); var indices = mesh.getSubMesh...
来源: Laya3.0_文档 发布时间: 20251010
...ht即为当前角色所在位置高度 if (isNaN(mheight)) //非数字,则走到不走区域,做相应的逻辑判断即可 方案二:(使用方便,性能较差,不推荐) layaAir3D在下下个 版...
来源: Laya_社区 发布时间: 20170505