大约有 95 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
... SHADERDEFINE_COLOR : int = 0x80[static] ShaderCompile3D SHADERDEFINE_DIRECTIONLIGHT : int = 0x8[static] ShaderCompile3D SHADERDEFINE_FOG : int = 0x4[static] ShaderCompile3D SHADERDEFINE_HIGHPRECISION : int = 0x1[static] ShaderCompile3D SHADERDEFINE_POINTLIGHT : int = 0x10[static] Shade...
来源: laya_api 发布时间: 20170929
...ew Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 directionLight.transform....
来源: Laya_社区 发布时间: 20210103
...場景 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
... ddf • 2020-05-09 18:28 @NilZ:参照示例里的关照实时阴影,在DirectionLight光源里能实现阴影,但在spotLight和pointLight上依然是没用的 NilZ • 2020-05-09 19:00 @ddf:DirectionLight光源里能实现阴影已经支持实时阴影了,但是spotLight和pointLight还没...
来源: Laya_社区 发布时间: 20200506
....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
...Light.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0)); directionLight.transform.worldMatrix=mat; //设置聚光灯范围 spotLight.range = 6.0; //设置聚光灯锥形角度 spotLight.spotAngle = 32; ``` **range** 为聚光的照射范围,与点光类似,区别只是聚光有...
来源: Laya2.0_文档 发布时间: 20210715
...ht(): void { let directlithtComponent = this.directLight.getComponent(Laya.DirectionLight2D); directlithtComponent.color = new Laya.Color(1, 1, 1); directlithtComponent.intensity = 0.2; } // 配置背景 setBackground(): void { let mesh2Drender = this.background.getComponent(Laya.Mesh2DRender); mesh...
来源: Laya3.0_文档 发布时间: 20251010
...ted All Inherited Externals Only exported Menu Globals "laya/d3/core/light/DirectionLightCom" DirectionLightCom Class DirectionLightCom DirectionLight 类用于创建平行光。 Hierarchy Light DirectionLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scr...
来源: Laya3.0_api 发布时间: 20231115