大约有 154 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0035 秒)
... //创建方向光 ------------------- 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
...Cone、Plane); 特效(Particle3D、PixelLine、Trail); 灯光(DirectionLight、PointLight、SpotLight、AreaLight); 相机。 可以创建的2D节点有: 基础2D节点(Sprite、Animation、Text、SoundNode、VideoNode); UI组件(Box、HBox、VBox、Image、Clip、Button、...
来源: Laya3.0_文档 发布时间: 20241014
... "child": }, { "type":"DirectionLight", "props":{ "isStatic":false, "name":"Directional Light", "intensity":1, "ligh...
来源: Laya_社区 发布时间: 20180122
....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
....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
... 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_文档 发布时间: 20210715
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210714