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

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

61. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 75%]

texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...

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

62. worker.js 使用问题 [ 74%]

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

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

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

64. 通过canvas的缩放来实现清晰度是什么意思呢? [ 73%]

...erial();                     material.diffuseTexture = Texture2D.load("res/test4.png");   sphere.meshRender.material = material;   test4.png是一张1024*512的图,我想提高贴图的清晰度 有人说可以通canvas缩放来实现 具体怎么做? 不用Texture2D.load(...

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

65. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 73%]

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...

来源: Laya3.0_文档 发布时间: 20230303

66. 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_社区 发布时间: 20190227

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

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

69. 动态阴影被切割了?为啥没有显示完成的阴影 [ 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

70. 没有人尝试使用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