大约有 264 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0067 秒)
...以初始化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
...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
...景里,3d场景里,3d场景里,我先dispose或者destory掉了某个texture2d,然后我尝试再去加载显示这张图,怎么也显示不了,具体代码如下: 这个函数尝试创建一个lh然后显示出来,然后删除同时清理一些资源,第二次调用这个函数的...
来源: Laya_社区 发布时间: 20180814
...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
...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
...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
...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
...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
...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
...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