大约有 26 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0031 秒)
...些?在移动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了...
来源: Laya2.0_文档 发布时间: 20210714
# 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
... 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; ``` ; Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...
来源: Laya2.0_文档 发布时间: 20210715
..., 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材...
来源: Laya2.0_文档 发布时间: 20210714
...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...
来源: Laya2.0_文档 发布时间: 20210714