大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(258) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7)
...ghtmapDirection ApplyLightmapEvent Properties lightmapColor lightmapColor: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:9 光照贴图颜色。 lightmapDirection lightmapDirection: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:11 光照贴图方向。 Static ApplyLightmapEvent ApplyLigh...
来源: Laya3.0_api 发布时间: 20231115
... var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` (图12)
来源: Laya2.0_文档 发布时间: 20210715
...litter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; ...
来源: Laya_示例 发布时间: 20251130
...Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya/loaders/TextureLoader.ts:213 Parameters task: ILoadTask tex2D: Texture2D Returns Texture Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader load wrapTex2...
来源: Laya3.0_api 发布时间: 20231115
... var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移...
来源: Laya_社区 发布时间: 20201120
material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...
来源: Laya_社区 发布时间: 20180125
...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...
来源: Laya_示例 发布时间: 20251130
...dardMaterial = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider) as Laya.BoxCollide...
来源: Laya_社区 发布时间: 20180820
...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...
来源: Laya_社区 发布时间: 20220811
...用canvas 或者WebGL 两种模式对使用引擎有什么区别? 请问Texture2D如何用base64字符串构建对象 Texture如何转换成Texture2D有人搞过吗 如何用代码调用按钮的点击事件(如as3的dispatchEvent)? laya2.0如何用命令行执行清理并导出功能 Laya.l...
来源: Laya_社区 发布时间: 20180106