大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0039 秒)
...CameraMoveScript); // 创建方向光 var light = scene.addChild( new Laya.DirectionLight()); //移动灯光位置 light.transform.translate(new Laya.Vector3(0, 2 ,5)); //调整灯光方向 light.direction = new Laya.Vector3(0, -5, 1); //设置灯光环境色 light.color = new Laya.Vector3(1, 1, 1);...
来源: Laya_社区 发布时间: 20171227
... //创建方向光 ------------------- var light = scene.addChild(new Laya.DirectionLight()); //移动灯光位置 light.transform.translate(new Laya.Vector3(0, 2, 5)); ShaderCompile use time:10 size:1937/7747 ReferenceError: CameraMoveScript is not defined at LayaAi...
来源: Laya_社区 发布时间: 20180426
...3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.shader.ShaderCompile3D; import laya.display.Stage; import laya.utils.Stat; import laya.webgl.We...
来源: Laya_示例 发布时间: 20241125
....d3.core.Sprite3D; import laya.d3.core.VRCamera; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Stat; import common.VRCame...
来源: Laya_示例 发布时间: 20241125
... "child": }, { "type":"DirectionLight", "props":{ "isStatic":false, "name":"Directional Light", "intensity":1, "ligh...
来源: Laya_社区 发布时间: 20180122
... var light = this.MainScene3D.getChildByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index+...
来源: Laya_社区 发布时间: 20191223
....PERIOD_SCENE, 'u_AmbientSHC': Shader3D.PERIOD_SCENE, //legacy lighting 'u_DirectionLight.color': Shader3D.PERIOD_SCENE, 'u_DirectionLight.direction': Shader3D.PERIOD_SCENE, 'u_PointLight.position': Shader3D.PERIOD_SCENE, 'u_PointLight.range': Shader3D.PERIOD_SCENE, 'u_PointLight.color': Shader3D.PE...
来源: Laya2.0_文档 发布时间: 20210714
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210714
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210715
....PERIOD_SCENE, 'u_AmbientSHC': Shader3D.PERIOD_SCENE, //legacy lighting 'u_DirectionLight.color': Shader3D.PERIOD_SCENE, 'u_DirectionLight.direction': Shader3D.PERIOD_SCENE, 'u_PointLight.position': Shader3D.PERIOD_SCENE, 'u_PointLight.range': Shader3D.PERIOD_SCENE, 'u_PointLight.color': Shader3D.PE...
来源: Laya2.0_文档 发布时间: 20210715