• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 91 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)

1. 灯光-方向光 [ 100%]

..., 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../...

来源: Laya_示例 发布时间: 20240930

2. 灯光-聚光 [ 98%]

... spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction = new Laya.Vector3(0.15, -1.0, 0.0); spotLight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMode...

来源: Laya_示例 发布时间: 20240930

3. 高级应用-实时阴影 [ 97%]

...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可...

来源: Laya_示例 发布时间: 20240930

4. Laya中 shader 加 Sprite.customRender能实现Direct3D中以下混合模式吗? [ 93%]

Laya中 shader 加 Sprite.customRender能实现Direct3D中以下混合模式吗? 混合因子:D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA; opengl中为 GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA 混合方式用乘法法:D3DTOP_MODULATE ;opengl好像没有乘法??? 2017-09-08 添加评论 ...

来源: Laya_社区 发布时间: 20170908

5. 用raycast选取实体,hitresult始终是false [ 92%]

...igin.x+ " ray.origin.y:"+ray.origin.y+ " ray.origin.z:"+ray.origin.z+" ray.direction.x:"+ray.direction.x+" ray.direction.y:"+ray.direction.y+" ray.direction.z:"+ray.direction.z); //产生射线 this.camera.viewportPointToRay(point, ray);//从摄像机到鼠标点击位置生成射线 console.log("ra...

来源: Laya_社区 发布时间: 20191219

6. discard property,please use transform's property instead [ 87%]

...ra.addComponent(CameraMoveScript);         //方向光         var directionLight = scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6);         directionLight.direction = new Laya.Vector3(0, -1.0, -1.0);         //灯光开...

来源: Laya_社区 发布时间: 20180725

7. 使用方向键 控制精灵在格子中移动 [ 79%]

..._y>this.sp.y){ this.sp.y +=5; }else{ this.sp.y -=5; } } }else{ this.nextDirection(); } } nextDirection(){ this.direction = this.keyList[0]; if(this.direction==37) this.next_x -= 50; if(this.direction==38) this.next_y -= 50; if(this.direction==39) this.next_x += 50; if(this.direction==40) this.nex...

来源: Laya_社区 发布时间: 20171125

8. 场景渲染配置(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 78%]

...Lightmapping Setting**光照贴图设置 ​ 全部支持,但是不包含Directional Mode(Directional) ​ **Tip**:烘焙光照贴图必须使用Non-Directional **(5) Other Setting**其他设置 ​ Fog场景雾化 **(6) Global maps** ​ 可导出,效果和PC,Mac&Linux Standalone保持一...

来源: Laya2.0_文档 发布时间: 20210715

9. 场景渲染配置(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 78%]

...Lightmapping Setting**光照贴图设置 ​ 全部支持,但是不包含Directional Mode(Directional) ​ **Tip**:烘焙光照贴图必须使用Non-Directional **(5) Other Setting**其他设置 ​ Fog场景雾化 **(6) Global maps** ​ 可导出,效果和PC,Mac&Linux Standalone保持一...

来源: Laya2.0_文档 发布时间: 20210714

10. 场景渲染配置(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 78%]

...Lightmapping Setting**光照贴图设置 ​ 全部支持,但是不包含Directional Mode(Directional) ​ **Tip**:烘焙光照贴图必须使用Non-Directional **(5) Other Setting**其他设置 ​ Fog场景雾化 **(6) Global maps** ​ 可导出,效果和PC,Mac&Linux Standalone保持一...

来源: Laya2.0_文档 发布时间: 20210714