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

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

281. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 64%]

...material = mat; //设置场景的反射贴图 scene.customReflection = mat.textureCube; //设置曝光强度 var exposureNumber:Number = 0; mat.exposure = 0.6 + 1; })); ..... //加载Mesh Laya.Mesh.load("res/threeDimen/staticModel/teapot/teapot-Teapot001.lm", Laya.Handler.create(null, function(mesh)...

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

282. 微信小游戏动画问题 [ 64%]

...08 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载资源,都会自动...

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

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

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

284. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 64%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

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

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

286. 同一类型光源互斥的问题报告 [ 63%]

...射 material.albedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3...

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

287. 仅在Android微信小游戏下图片错乱 [ 63%]

...游戏:HTMLDivElement的使用 2.1.1.1引擎微信小游戏掉帧严重 Texture图片能否进行翻转? 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 matter中layasprite怎么改变图片大小? 问题状态 最新活动: 2018-06-10 11:35 浏览: 2239 关注: 1 人 xxxxxxx...

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

288. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 63%]

...eBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D...

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

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

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

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

...rial: Laya.StandardMaterial = 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