大约有 238 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0067 秒)
Laya_社区(110) Laya2.0_文档(51) Laya3.0_api(41) Laya_示例(22) Laya2.0_api(5) Laya3.0_文档(4) laya_api(4) Laya2.0_示例(1)
...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
...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
... Texture 对象。 Parameters source: Texture | BaseTexture 绘图资源 Texture2D 或者 Texture对象。 x: number 起始绝对坐标 x 。 y: number 起始绝对坐标 y 。 width: number 宽绝对值。 height: number 高绝对值。 Default value offsetX: number = 0 X 轴偏移量(可选)...
来源: Laya3.0_api 发布时间: 20231115
...createFromMeshAndHeightMap createFromMeshAndHeightMap(mesh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name?: string): MeshTerrainSprite3D Defined in laya/d3/core/MeshTerrainSprite3D.ts:39 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 Parameters...
来源: Laya3.0_api 发布时间: 20231102
...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
...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
...aterial = mat; })); ``` ##### 纹理Texture加载 单个纹理加载使用`Texture2D.load()`方法,示例代码如下: ```typescript //加载纹理,省略若干代码,仅为加载示例 Laya.Texture2D.load("xx/xx.png", Laya.Handler.create(null, function(Texture) { //使用纹理 var earth1 = sce...
来源: Laya2.0_文档 发布时间: 20210714
... fa = clamp(fa, 0.0, 1.0);\ vec4 t_color = texture2D(texture, v_texcoord); \ gl_FragColor = t_color.rgba * v_color.rgba * vec4(1,1,1,fa); \ }\ "; /* var ps: string = " \ ...
来源: Laya_社区 发布时间: 20170606
...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D, parent?: Node, worldPositionStays?: b...
来源: Laya3.0_api 发布时间: 20231115
...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