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

大约有 581 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)

271. 3D两个平面拼接的贴图直接会有明显的接缝 [ 65%]

...是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码   var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D...

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

272. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 65%]

...; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constru...

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

273. 使用高度图的时候 Cannot read property 'width' of undefined [ 65%]

...hTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。   附件 : --> test.rar 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

274. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 64%]

...d("res/apes/monkey2.png", Handler.create(this, function() {     var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png");     var sp:Spirte = new Sprite();     sp.graphics.drawTexture(texture, 0, 0);     sp.size(texture.width, texture.height);     Laya.stage.a...

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

275. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 64%]

...]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来 ```typescript private com...

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

276. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 64%]

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

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

277. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 64%]

...]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); } ``` 第三种我们直接创建一个纹理来 ```java private function completeH...

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

278. 资源加载清除问题 [ 64%]

... onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉了? 2016-12-...

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

279. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 64%]

...material = mat; //设置场景的反射贴图 scene.customReflection = mat.textureCube; //设置曝光强度 var exposureNumber = 0; mat.exposure = 0.6 + 1; })); ..... //加载Mesh Laya.Mesh.load("res/threeDimen/staticModel/teapot/teapot-Teapot001.lm", Laya.Handler.create(null, function(mesh){ teapo...

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

280. Image加载完成后的图片大小重设问题 [ 64%]

...片以圆形的方式显示? 加载到舞台的3D模型不显示贴图 Texture图片能否进行翻转? IDE1.7.8 json图集加载问题 matter中layasprite怎么改变图片大小? 请问下加载TFF字体要怎么加载呢? ios14系统下 blendMode='lighter' 图片异常 路径是对的,...

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