大约有 1,726 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0152 秒)
Laya_社区(1387) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(18) Laya_示例(8) Laya2.0_示例(5)
...使用类似官网的json文件控制取图路径吗?还是说只能靠Texture这种方式,每次都要调用的时候创建? 如题,谢谢! 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuix...
来源: Laya_社区 发布时间: 20170505
...9, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20170620
... u_AlbedoColorScale: { type: Float, default: 1.0 }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, // u_AlbedoTexture2: { type: Texture2D, options: { define: "ALBEDOTEXTURE2" } }, // u_AlbedoTexture2Offset: { type: Vector4, defaul...
来源: Laya_社区 发布时间: 20250428
...sprite 显示问题 相机中的rendertarget转换到图片中显示不了 texture = camera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170510
...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...
来源: Laya_社区 发布时间: 20220811
...urls.push({ url: ResourcesManager.inst.brush_test_green, clas: Laya.Loader.TEXTURE2D,constructParams:[100, 100, 1, false, true]}); //开始填充 public fillPlane(){ let brush = Laya.loader.getRes(ResourcesManager.inst.brush_test_green) as Laya.Texture2D; let ...
来源: Laya_社区 发布时间: 20200706
LayaNative2.0 beta3 单像素图片平铺绘制失败 var tex:Texture = Laya.loader.getRes("res/repeattest.png");// 此图宽度只有1像素,横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正...
来源: Laya_社区 发布时间: 20181025
...tage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dr...
来源: Laya_社区 发布时间: 20171106
...属性 (图2-5) 如图2-5所示,精灵的自身属性有: 纹理 Texture:绘制一个图片或者渲染纹理。 绘制图形 Graphics:绘制一个或者一组图形。 2.3.1 Image的Texture 首先,Sprite的Texture是支持通过拖入或者加载一张图片作为纹理Texture绘制...
来源: Laya3.0_文档 发布时间: 20251010
...a.BlinnPhongMaterial; //添加漫反射贴图 Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); Laya.Texture2D.load("res/threeDimen/Physics/plywood.j...
来源: Laya_社区 发布时间: 20191009