大约有 581 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0082 秒)
Laya_社区(357) Laya2.0_文档(64) Laya3.0_api(54) Laya_示例(32) Laya2.0_api(22) laya_api(20) Laya3.0_文档(19) Laya2.0_示例(13)
...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
...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
...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
... 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
...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
...射 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
...游戏:HTMLDivElement的使用 2.1.1.1引擎微信小游戏掉帧严重 Texture图片能否进行翻转? 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 matter中layasprite怎么改变图片大小? 问题状态 最新活动: 2018-06-10 11:35 浏览: 2239 关注: 1 人 xxxxxxx...
来源: Laya_社区 发布时间: 20180609
...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
...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
...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