大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
...rowser.window.Matter; var LayaRender = Browser.window.LayaRender; var mouseConstraint; var engine; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(stageWidth, stageHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...
来源: Laya_示例 发布时间: 20241118
...png"; private readonly PathFly:string = "../../res/fighter/fighter.atlas"; constructor() { //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgCol...
来源: Laya_示例 发布时间: 20241118
...r1, character2, character3, character4]; var characters = []; var text; // Constructor (function() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters(); text = new...
来源: Laya_示例 发布时间: 20241118
...+ "attribute vec4 a_BoneIndices;\n" + "attribute vec4 a_BoneWeights;\n" + "const int c_MaxBoneCount = 24;\n" + "uniform mat4 u_Bones[c_MaxBoneCount];\n" + "#endif\n" + "#if defined(DIRECTIONLIGHT)\n" + "varying vec3 v_PositionWorld;\n" + "#endif\n" + "void main(){\n" + "#ifdef BONE\n" + "mat4 skinTr...
来源: Laya_示例 发布时间: 20241118