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

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

31. 从图集中创建Texture2D问题 [ 85%]

从图集中创建Texture2D问题 我在做物品的掉落渲染,需要用到Texture2D对象。我本以为Texture与Texture2D是一样的,但当我通过Texture2Dload方法获取物品图集中的图片时遇到了问题:获取出的图片不是我某个物品的,而是整个物品图...

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

32. laya.resource.Texture2D_API3.0 [ 85%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

来源: Laya3.0_api 发布时间: 20231115

33. laya.loaders.TextureLoader_API3.0 [ 84%]

...Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya/loaders/TextureLoader.ts:213 Parameters task: ILoadTask tex2D: Texture2D Returns Texture Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader load wrapTex2...

来源: Laya3.0_api 发布时间: 20231115

34. laya.d3.resource.DataTexture2D [ 84%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929

35. 天空-天空穹 [ 84%]

...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...

来源: Laya_示例 发布时间: 20240929

36. 求问Texture和Texture2D的区别,和使用问题 [ 84%]

求问Texture和Texture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D   2、...

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

37. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 84%]

...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...

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

38. texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) [ 84%]

texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) 如果是Laya.Texture2D.load的加载方式,默认加载的是texture2D,会自动设置wrapModeU和wrapModeV为平铺,在使用官方的纹理平铺案例的图片时,发现是没问题的,而使用自己的...

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

39. WaterPrimaryMaterial的使用 [ 83%]

...ar material: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...

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

40. Texture如何转换成Texture2D有人搞过吗 [ 83%]

Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...

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