大约有 69 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0045 秒)
...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); 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, -1); //加载网格 var layaMonkey = scene.addChild(new La...
来源: Laya_社区 发布时间: 20171127
...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
...-15, 0, 0), true, false); this.camera.clearColor = null; //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平...
来源: Laya_社区 发布时间: 20180820
...場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector...
来源: Laya_社区 发布时间: 20200917
... //添加方向光 this.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; //产生投影的范围(如过小将不会产生投影) ...
来源: Laya_社区 发布时间: 20181016
...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
...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
...CustomTerrainMaterial.MATERIALSPECULAR, Laya.Shader3D.PERIOD_MATERIAL], 'u_DirectionLight.Direction': [Laya.Scene.LIGHTDIRECTION, Laya.Shader3D.PERIOD_SCENE], 'u_DirectionLight.Diffuse': [Laya.Scene.LIGHTDIRDIFFUSE, Laya.Shader3D.PERIOD_SCENE] }; var customTerrianShader = Laya.Shader3D.nameKey.add("...
来源: Laya_示例 发布时间: 20241125
... "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