大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0020 秒)
...aTexture2D.load(envpath + envinfoobj.prefiltedEnv); var irrdMat = new Float32Array(envinfoobj.IrradianceMat); skyDome.envDiffuseSHRed = irrdMat.slice(0, 16); skyDome.envDiffuseSHGreen = irrdMat.slice(16, 32); skyDome.envDiffuseSHBlue = irrdMat.slice(32, 48); addTestSphere(); } function addTestSphere...
来源: Laya_示例 发布时间: 20241125
...ge.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; drawPentagram(); })(); function drawPentagram() { var canvas = new Sprite(); Laya.stage.addChild(canvas); var path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 13...
来源: Laya_示例 发布时间: 20241125
...ENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createMap(); Laya.stage.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.w...
来源: Laya_示例 发布时间: 20241125
...//用球模拟精灵的球体碰撞器 sphereMesh = new Laya.SphereMesh(1, 32, 32); sphereSprite3d = scene.addChild(new Laya.MeshSprite3D(sphereMesh)); var mat = new Laya.StandardMaterial(); mat.albedo = new Laya.Vector4(1, 1, 1, 0.5); mat.renderMode = 5; sphereSprite3d.meshRender.material = mat; La...
来源: Laya_示例 发布时间: 20241125
...的背景。2帧:悬停时背景、选中时背景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为...
来源: Laya_示例 发布时间: 20241125
...= new Laya.Vector3(0.0, 0.0, 0.8); spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.o...
来源: Laya_示例 发布时间: 20241125