大约有 451 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0040 秒)
Laya_社区(254) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya2.0_api(10) laya_api(7) Laya3.0_文档(7)
...用mipmap Laya3D有没有一个全局设置可以禁用texture的mipmap, texture2d对象不是我生成的,没办法在构造方法设置,所以想问下有没有个全局方法可以设置 2018-04-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180402
...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...
来源: Laya_示例 发布时间: 20241123
...tandardMaterialDemo))。 ```typescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 L...
来源: Laya2.0_文档 发布时间: 20210715
...粒子特效问题 导出的时候报错了 Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats. UnityEngine.Texture2D:EncodeToPNG() LayaExport.DataManager:saveTextureFile(JSONObject, Texture2D, String, String, String) LayaExport.DataManager:saveLmatF...
来源: Laya_社区 发布时间: 20180321
...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...
来源: Laya_社区 发布时间: 20240305
...text': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519) at Texture2D.__proto.recreateResource (laya.d3.js:33562) at Texture2D.__proto.activeResource (laya.core.js:13234) at Texture2D.<anonymous> (laya...
来源: Laya_社区 发布时间: 20171120
...:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Te...
来源: Laya2.0_文档 发布时间: 20210714
...thods MethodDefined By TextureGenerator()TextureGenerator _generateTexture2D(texture:Texture2D, textureWidth:int, textureHeight:int, func:Function):void[static] TextureGenerator haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator ligh...
来源: Laya2.0_api 发布时间: 20190513
...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void { menu_sprite_jian.graphics.drawTexture(tex,0,0); }));这样然后无法drawtexture报...
来源: Laya_社区 发布时间: 20190508
... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...
来源: Laya2.0_文档 发布时间: 20210714