大约有 31 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0039 秒)
...ceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否...
来源: laya_api 发布时间: 20170929
....Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(-5,10,-5)); //设置灯光方向 light.direction = new Laya.Vector3(1, -1, 1);...
来源: Laya_社区 发布时间: 20180302
...w Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(0,5,0)); //设置灯光方向 light.direction = new Laya.Vector3(0.3, -1, 0); ...
来源: Laya_社区 发布时间: 20180307
...priteInheritanceLightSprite Sprite3D Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否...
来源: Laya2.0_api 发布时间: 20190513
... 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
...shRenderer.material = material;后插入如下代码: // 自定义内容 directionLight.shadow = true; box.meshRenderer.castShadow = true; box.meshRenderer.receiveShadow = true;3. F6运行,渲染正常 4. 打包发布并导入微信小游戏工具,使用基础库2.6.6 5. iOS扫码启动,渲...
来源: Laya_社区 发布时间: 20190423
....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
....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
...Public Constants Show Inherited Public Constants ConstantDefined By TYPE_DIRECTIONLIGHT : int = 1[static] 定义平行光类型的标记。LightSprite TYPE_POINTLIGHT : int = 2[static] 定义点光类型的标记。LightSprite TYPE_SPOTLIGHT : int = 3[static] 定义聚光类型的标记。LightS...
来源: laya_api 发布时间: 20170929