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

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

171. 3D阴影无法渲染出来 [ 63%]

... material = new Laya.StandardMaterial(); // material.diffuseTexture = Laya.Texture2D.load("res/qiu/6.jpg"); // box.meshRender.material = material; box.meshRender.receiveShadow=true; box.meshRender.castShadow=true; var box2 = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(10, 10, 1))...

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

172. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 62%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material;  let res1 = Laya.Sp...

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

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

...lbedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3(0, 0, 0); var...

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

174. 骨骼挂点图片不展示的问题 [ 61%]

...these 赞同来自: MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:427) LayaAir3D.OnGUI () (at Assets/LayaAir3D/L...

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

175. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 61%]

...eBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D...

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

176. 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 [ 60%]

...discard;\n      #ifdef TINTCOLOR\n          gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color;\n       #else\n         gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*v_Color;\n       #endif\n    #else\n     #ifdef T...

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

177. Skeleton骨骼动画内存泄漏 [ 60%]

...f (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // con...

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

178. 3D网格添加刚体后设置欧拉角出现位置错误 [ 59%]

...a.BlinnPhongMaterial;         //添加漫反射贴图         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         //平面加载         let plane = this.scene.add...

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

179. 怎么修改Texture的颜色 [ 59%]

...行光产生的投影,如何修改颜色深浅? Texture如何转换成Texture2D有人搞过吗 layabox中纹理的颜色采样问题,用原生combobox也有这个问题 背景音乐播放BUG,销毁异常导致的播放异常,里面有修改方案 WebGL模式下,两个相同颜色图片的...

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

180. ambientColor无效 [ 59%]

...ntColor无效 material = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/earth.png"); material.ambientColor=new Vector(2,2,2); sphere.meshRender.material = material; 我照教程里设置了环境颜色 material.ambientColor=new Vector(2,2,2); 但是无效,模型并没有加...

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