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

大约有 264 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0067 秒)

191. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 40%]

...以初始化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

192. laya.d3.core.material.PBRSpecularMaterial_API3.0 [ 40%]

...arameters value: boolean Returns void tangentTexture get tangentTexture(): Texture2D set tangentTexture(value: Texture2D): void Inherited from PBRMaterial.tangentTexture Defined in laya/d3/core/material/PBRMaterial.ts:390 Returns Texture2D Inherited from PBRMaterial.tangentTexture Defined in laya/d3...

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

193. 3d资源释放的问题 [ 39%]

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

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

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

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

195. laya.d3.core.material.PBRMaterial_API3.0 [ 39%]

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

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

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

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

198. laya.html.dom.HTMLIframeElement_API3.0 [ 37%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null, invertY?: boolean): Texture | RenderTexture2D Inherited from AnimationBase.drawToTexture Defined in laya/display/Sprite.ts:1200 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: numbe...

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

199. laya.html.dom.HTMLDivElement_API3.0 [ 37%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null, invertY?: boolean): Texture | RenderTexture2D Inherited from AnimationBase.drawToTexture Defined in laya/display/Sprite.ts:1200 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: numbe...

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

200. laya.physics.PhysicsDebugDraw_API3.0 [ 36%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...

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