大约有 581 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
Laya_社区(357) Laya2.0_文档(64) Laya3.0_api(54) Laya_示例(32) Laya2.0_api(22) laya_api(20) Laya3.0_文档(19) Laya2.0_示例(13)
...是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码 var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D...
来源: Laya_社区 发布时间: 20180412
...; 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
...hTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。 附件 : --> test.rar 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170601
...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
...]),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
..., 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
...]),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
... onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉了? 2016-12-...
来源: Laya_社区 发布时间: 20161230
...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
...片以圆形的方式显示? 加载到舞台的3D模型不显示贴图 Texture图片能否进行翻转? IDE1.7.8 json图集加载问题 matter中layasprite怎么改变图片大小? 请问下加载TFF字体要怎么加载呢? ios14系统下 blendMode='lighter' 图片异常 路径是对的,...
来源: Laya_社区 发布时间: 20161116