大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0057 秒)
Laya_社区(277) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(30) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
...tor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexM...
来源: Laya_社区 发布时间: 20201009
...Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: http://www.w3school.com.cn/jsref/jsref_tof...
来源: Laya_社区 发布时间: 20180326
...ra.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添加自定...
来源: Laya_社区 发布时间: 20180605
...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Bo...
来源: Laya3.0_文档 发布时间: 20240910
...addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya.ShadowMode.SoftLow; directionLight.shadowDistance = 100; directionLight.sh...
来源: Laya_社区 发布时间: 20201105
...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: ...
来源: Laya2.0_文档 发布时间: 20210715
...ctor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); c...
来源: Laya_社区 发布时间: 20201021
...gth 控制阴影的强度。值越大,阴影越深。 阴影颜色 ShadowColor 设置阴影的颜色。 阴影层遮罩 ShadowLayerMask 控制哪些层会产生阴影。关于层的影响,开发者需要注意,阴影的显示需要设置两个组件的层级,一是各种灯光的layerMask,...
来源: Laya3.0_文档 发布时间: 20250214
...his.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生投影) this.Light.shadowDistance = 1...
来源: Laya_社区 发布时间: 20181016
...IGHT0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:49 a_Color a_Color: [number, Vector4] = [VertexMesh.MESH_COLOR0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:48 a_Normal a_Normal: [number, Vector3] = [VertexMesh.MESH_NORMAL0, ShaderDataType.Vector3] Defined in...
来源: Laya3.0_api 发布时间: 20231102