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

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

71. 描边Shader,使用了两个Pass [ 57%]

...vec2 v_Texcoord; uniform sampler2D u_Texture; void main() { gl_FragColor = texture2D(u_Texture, v_Texcoord); }` outlineShader.addShaderPass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (...

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

72. MeshSprite3D如何用缓动变化 透明度alpha值? [ 56%]

...个测试方法 laya2.0如何用命令行执行清理并导出功能 请问Texture2D如何用base64字符串构建对象 UI编辑里面添加的rect怎么设置透明度? 如何用 FlashBuilder 或 LayaIDE 进行单步调试? 问题状态 最新活动: 2019-02-28 14:07 浏览: 1485 关注: 5 人...

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

73. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 55%]

...brTexture = Laya.Loader.getRes("res/threeDimen/texture/earth.png") as Laya.Texture2D; //为PBRStandard材质设置漫反射贴图 this.pbrStandardMaterial.albedoTexture = this.pbrTexture; //修改导出球的材质 this.sphere.meshRenderer.material = this.pbrStandardMaterial; ``` ![](img/5.png)(图5...

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

74. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 53%]

...createFromMeshAndHeightMap createFromMeshAndHeightMap(mesh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name?: string): MeshTerrainSprite3D Defined in laya/d3/core/MeshTerrainSprite3D.ts:39 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 Parameters...

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

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

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

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

76. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 49%]

...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...

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

77. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 49%]

...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...

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

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

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

79. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...

来源: Laya3.0_文档 发布时间: 20251010

80. laya.d3.core.Camera_API3.0 [ 45%]

...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D, parent?: Node, worldPositionStays?: b...

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