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

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

31. laya.d3.core.scene.Scene [ 79%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

32. 分享:LayaAir下如何获取图集下的小图资源? [ 79%]

...; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Hand...

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

33. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 79%]

...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...

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

34. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 79%]

...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...

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

35. localRotationEulerY旋转位置错误 [ 79%]

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

36. 如何获取animation的node节点? [ 78%]

... Laya.Sprite(); // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniPr...

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

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

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

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

38. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 78%]

...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...

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

39. layaAir的位图字体fnt可以兼容 egret 的 texture merger工具生成的fnt吗? [ 78%]

layaAir的位图字体fnt可以兼容 egret 的 texture merger工具生成的fnt吗? layaAir的位图字体fnt可以兼容 egret 的 texture merger工具吗? 因为正好是在mac系统下的,所以如果可以的话会很方便,如果不可以的话,mac下有可以替代的软件吗?...

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

40. 又又发现惊天大bug [ 78%]

又又发现惊天大bug 使用Texture2D.load这个图片报错https://flock.oss-cn-beijing.aliyuncs.com/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit   原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeim...

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