大约有 207 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
# RenderTexture的像素读取 ###### *version :2.1.0 Update:2019-5-25* 在之前的RenderTexture的使用还是实时的渲染 “摄像机”。但是在很多的时候我需要像相机一样 “拍”一张照片,这样我们就可以使用RenderTexture的 `getData` 像素读取接口来...
来源: Laya2.0_文档 发布时间: 20210714
# RenderTexture的像素读取 ###### *version :2.1.0 Update:2019-5-25* 在之前的RenderTexture的使用还是实时的渲染 “摄像机”。但是在很多的时候我需要像相机一样 “拍”一张照片,这样我们就可以使用RenderTexture的 `getData` 像素读取接口来...
来源: Laya2.0_文档 发布时间: 20210714
...tor() { super(...arguments); this._tileTextureSet = null; this._aniName = null; } setTileTextureSet (aniName, tileTextureSet) { this._aniName = aniName; this._tileTextureSet = tileTextur...
来源: Laya_社区 发布时间: 20220627
... false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex){ //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ``` ; //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex){ //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ``` ; public readonly NOISE_TEX:number = Shader3D.propertyNameToID("u_N...
来源: Laya_社区 发布时间: 20190923
...al: SkyPanoramicMaterial = new SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03...
来源: Laya_社区 发布时间: 20200319
...//创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...
来源: Laya2.0_文档 发布时间: 20210715