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

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

51. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 78%]

...tandardMaterialDemo))。 ```typescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 L...

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

52. worker.js 使用问题 [ 78%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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

53. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 77%]

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

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

54. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 77%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

55. timer无法执行 [ 77%]

...ball1mat: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material...

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

56. laya默认模型的阴影没有渲染 [ 77%]

... 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))); box2.tr...

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

57. [LayaAir3]资源未清理干净 [ 77%]

...] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.p...

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

58. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 77%]

...。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载的纹理设置为他的纹理。这个操作实际上和3D简单示例的操作是相同的。 ```typescript //加载纹理 Texture2D.load("res/thre...

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

59. 3D阴影无法渲染出来 [ 76%]

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

60. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 75%]

...0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错。 请...

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