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

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

71. Unlit材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 73%]

...it材质 var material2:UnlitMaterial = new UnlitMaterial(); //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/...

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

72. 3D开启多线程报错 [ 73%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

73. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 73%]

... var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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

74. localRotationEulerY旋转位置错误 [ 72%]

...  var planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void {             planeMat.albedoTexture = tex;         }));         //设置纹理平铺和偏移...

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

75. 动态阴影被切割了?为啥没有显示完成的阴影 [ 72%]

...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox = currentCube; current...

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

76. 没有人尝试使用3d物理引擎么 [ 71%]

...t laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Browser; imp...

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

77. Laya.loader.load加载位图字体 [ 71%]

...e if (type==="font"){//这里,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){              ...

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

78. skydome可以替换贴图吗? [ 70%]

...al: SkyPanoramicMaterial = new SkyPanoramicMaterial();         Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) {             material.panoramicTexture = tex;             skymat.material = material;         })); 2020-03...

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

79. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 70%]

... ​ 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以...

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

80. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 70%]

...//创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...

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