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

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

201. 为什么说没有​ playByFrame方法 [ 49%]

...er的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D有没...

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

202. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 48%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javascript import OutlineFS from "../customShader/outline.fs"; import OutlineVS from "....

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

203. laya3d场景使用图集里的图片,显示的是整个图集资源图片 [ 48%]

...载图集图片返回的Texture对象,是需要自己裁切纹理转成Texture2D对象吗? Laya_Aaron • 2019-07-13 10:23 @邓中强:这个问题不是一句户两句话能解决的,也不是给个回答就能解决,这是一套知识体系。 Laya_Aaron • 2019-07-13 10:24 @Laya_Aaron:美...

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

204. 关于平行光渲染投影问题,求解惑 [ 48%]

...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; } } new LayaAir3D(); 2018-03-02 1 1 分享 微博 QZONE...

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

205. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 48%]

...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...

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

206. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 47%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javascript var OutlineVS:String = __INCLUDESTR__("../customShader/outline.vs"); var Out...

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

207. 1.7.17beta,微信小游戏预览加载问题 [ 47%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey/LayaMonkey.lh")); 2018-03-12 0 0 分享 微博 QZONE 微信 banmini 赞同来自: 补...

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

208. 求助 Uncaught SyntaxError: Unexpected identifier [ 47%]

...material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Texture2D.load("res/bg.png"); plane.meshRender.material = material; //生成坐标中心,其实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new Standa...

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

209. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 46%]

...有文字的贴图,贴上去, 2是把文字绘制成图,然后传给texture2d 贴上去 2018-08-14 0 2 分享 微博 QZONE 微信 Constantine 赞同来自: 那请问用方法2 如何在laya中实现把文字绘制成图? 2018-09-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

210. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 45%]

...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; //旋转方向与角度设置 var vect:Laya.Vector3 = n...

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