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

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

121. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 47%]

...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....

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

122. laya.d3.core.render.BloomEffect_API3.0 [ 46%]

.../d3/core/render/BloomEffect.ts:83 泛光颜色。 dirtTexture dirtTexture: Texture2D = null Defined in laya/d3/core/render/BloomEffect.ts:87 镜头污渍纹路,用于为泛光特效增加污渍灰尘效果 fastMode fastMode: boolean = false Defined in laya/d3/core/render/BloomEffect.ts:85 是否开...

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

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

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

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

124. laya.resource.BaseTexture [ 44%]

...ass BaseTextureInheritanceBaseTexture laya.resource.BitmapSubclasses RenderTexture2D, Texture2D BaseTexture 纹理的父类,抽象类,不允许实例。 Public Properties PropertyDefined By  anisoLevel : int 各向异性等级 BaseTexture  defaulteTexture : BaseTexture[read-only] 获取默...

来源: Laya2.0_api 发布时间: 20190513

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

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

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

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

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

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

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

128. 一个简单的跑酷曲面shader分享 [ 42%]

...rm sampler2D u_MainTex; varying vec2 v_textcoord; void main() { vec4 col = texture2D(u_MainTex, v_textcoord); gl_FragColor = col; } `; var shader: Laya.Shader3D = Laya.Shader3D.add("CustomCurveShader"); var subShader: Laya.SubShader = new Laya.SubShader(attributeMap, uniformMap); shader.addSubShader...

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

129. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 41%]

...a.StandardMaterial(); layaMonkey.meshRender.material.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/ui/button.png"); layaMonkey.meshRender.material.transformUV = new Laya.TransformUV(); console.log(layaMonkey.meshRender.material.transformUV); var rotation = new Laya.Vector3(0, 0.01, 0); ...

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

130. laya.resource.BaseTexture_API3.0 [ 38%]

...抽象类,不允许实例。 Hierarchy Resource BaseTexture NativeRenderTexture2D RenderTexture2D RenderTexture TextureCube Texture2DArray Texture2D VideoTexture Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compare...

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