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

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

371. 发布原生 ios/android 的渲染问 题 [ 39%]

...游戏中也 确实进行了相关的操作  private onTexLoad(tex:Laya.Texture2D):void { // let oldTex = this.material.getTexture(); this.material.setTexture(tex); this.plane.active = true; // if(oldTex) // { // MeshPool.destoryRes(oldTex["keyUrl"],oldTex); // }  }我所注视的就是上面在la...

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

372. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...if #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientStartColor, u_gr...

来源: Laya3.0_文档 发布时间: 20251120

373. laya.resource.BaseTexture [ 39%]

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

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

374. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 39%]

...以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).Graph(aSta...

来源: Laya3.0_文档 发布时间: 20230303

375. laya.d3.core.material.PBRMaterial_API3.0 [ 38%]

...ters value: number Returns void anisotropyTexture get anisotropyTexture(): Texture2D set anisotropyTexture(value: Texture2D): void Defined in laya/d3/core/material/PBRMaterial.ts:532 anisotropy 强度贴图 Returns Texture2D Defined in laya/d3/core/material/PBRMaterial.ts:536 anisotropy 强度贴图...

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

376. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 38%]

...v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { vec4 col = texture2D(u_MainTex, uv); //gl_FragColor = vec4(worldPos.xyz, 1.0); float d = distance(worldPos.xyz, vec3(.0, .0, .0)) * 0.15; col.xyz *= d; col.xyz *= u_MainCol; col.a = 0.5; gl_FragColor = col; }`; var customShader:Laya.Sha...

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

377. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 37%]

...ters value: number Returns void anisotropyTexture get anisotropyTexture(): Texture2D set anisotropyTexture(value: Texture2D): void Inherited from PBRMaterial.anisotropyTexture Defined in laya/d3/core/material/PBRMaterial.ts:532 anisotropy 强度贴图 Returns Texture2D Inherited from PBRMaterial.ani...

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

378. 3d资源释放的问题 [ 37%]

...景里,3d场景里,3d场景里,我先dispose或者destory掉了某个texture2d,然后我尝试再去加载显示这张图,怎么也显示不了,具体代码如下: 这个函数尝试创建一个lh然后显示出来,然后删除同时清理一些资源,第二次调用这个函数的...

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

379. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 37%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private ...

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

380. [BUG]刚体约束问题,移动后约束混乱! [ 37%]

...0);     var planeMat = new Laya.BlinnPhongMaterial();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = pl...

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