大约有 31 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0037 秒)
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
...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
...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
..._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
...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
...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
...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
...置点光的衰减 //创建平行光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
...moketao 相关问题 ios14系统下 blendMode='lighter' 图片异常 场景directional_light,active问题 blendMode = "destination-out"在移动端不生效 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? 在IOS机型上显示曝光,好像多了叠加(blendMode)效果...
来源: Laya_社区 发布时间: 20170712
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