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

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

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

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

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

...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

3. discard property,please use transform's property instead [ 93%]

...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

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

..._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

5. Laya3D鼠标检测,3d对象被添加到场景,然后又被移除,还能通过Ray进行碰撞检测么? [ 83%]

...ger.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.origin.y = 0; ray.origin.z = 0; handCamera.viewportPointToRay(point, ray); Physics.rayCastAll(ray, outHitAllInfo); var hit:RaycastHit = outHitAl...

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

6. Animation 使用疑问 [ 81%]

...index);         });   播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void {          this.aniBody.destroyChildren();          this.aniBody.clear();         let loopPlay: boolean = true;         let key: string = actionName + "...

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

7. Sprite.loadImage()中设置的y的值为Browser.ClientHight时不准确是为什么? [ 81%]

...BgBottom=20,dirBgSize=Browser.clientHeight*0.5,dirSpace=dirBgSize*0.2; var directionBg = new Sprite(); directionBg.loadImage("../bin/res/img/btn_direction$bg.png",dirBgLeft,Browser.clientHeight,dirBgSize,dirBgSize); Laya.stage.addChild(directionBg); Sprite.loadImage()中设置的y的值为Browser.Cl...

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

8. 同一类型光源互斥的问题报告 [ 71%]

...置点光的衰减 //创建平行光1 var light3 = scene.addChild(new Laya.DirectionLight()); light3.direction = new Laya.Vector3(0.5, -1, 0); light3.color = new Laya.Vector3(0, 1, 1); //创建平行光2 var light4 = scene.addChild(new Laya.DirectionLight()); light4.direction = new Laya.Vector3(-1, ...

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

9. BlendMode ADD 和 LIGHT [ 67%]

...moketao 相关问题 ios14系统下 blendMode='lighter' 图片异常 场景directional_light,active问题 blendMode = "destination-out"在移动端不生效 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? 在IOS机型上显示曝光,好像多了叠加(blendMode)效果...

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

10. 3D阴影无法渲染出来 [ 66%]

3D阴影无法渲染出来 //添加方向光 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, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...

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