大约有 17 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0024 秒)
...Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya...
来源: Laya_示例 发布时间: 20241117
...ar Browser = Laya.Browser; var WebGL = Laya.WebGL; // 该容器用于装载4张猩猩图片 var apesCtn; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...
来源: Laya_示例 发布时间: 20241117
...is, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/...
来源: Laya_示例 发布时间: 20241117
..., true, false); renderTargetCamera.renderTarget = new Laya.RenderTexture(2048, 2048); renderTargetCamera.renderingOrder = -1; renderTargetCamera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); dir...
来源: Laya_示例 发布时间: 20241117
...en/scene/terrain/terrain/ground_03.jpg")); customMaterial.setDiffuseTexture4(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/ground_04.jpg")); customMaterial.setDiffuseScale1(new Laya.Vector2(27.92727, 27.92727)); customMaterial.setDiffuseScale2(new Laya.Vector2(13.96364, 13.96364));...
来源: Laya_示例 发布时间: 20241117
...ture.height) / 2; } function makeRedApe() { //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,红色 var redMat = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1, 0, //A ]; //创建一个颜色滤镜对象,红色 var redFilter = new ColorFilter(redMat); // 赤化...
来源: Laya_示例 发布时间: 20241117
...ist = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect)...
来源: Laya_示例 发布时间: 20241117
...n.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeActionButton.labelBold = true; this.changeActionButton.labelSize = 30; this.changeActionButton.sizeGrid = "4,4,4,4"; this.changeActionButton.scale(Laya.Browser.pixelRatio, Laya.Browser.pixelRatio); this.change...
来源: Laya_示例 发布时间: 20241117
...ya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Burning_Ground.lh"));class Particle_BurningGround { construc...
来源: Laya_示例 发布时间: 20241117
...ya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructo...
来源: Laya_示例 发布时间: 20241117