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

大约有 26 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0030 秒)

1. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 100%]

...些?在移动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了...

来源: Laya2.0_文档 发布时间: 20210714

2. RenderTexture的像素读取(JavaScript-3D基础(JS)-LayaAir3D之纹理) [ 89%]

# RenderTexture的像素读取 ###### *version :2.1.0 Update:2019-5-25* ​ 在之前的RenderTexture的使用还是实时的渲染 “摄像机”。但是在很多的时候我需要像相机一样 “拍”一张照片,这样我们就可以使用RenderTexture的 `getData` 像素读取接口来...

来源: Laya2.0_文档 发布时间: 20210714

3. RenderTexture的像素读取(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 89%]

# RenderTexture的像素读取 ###### *version :2.1.0 Update:2019-5-25* ​ 在之前的RenderTexture的使用还是实时的渲染 “摄像机”。但是在很多的时候我需要像相机一样 “拍”一张照片,这样我们就可以使用RenderTexture的 `getData` 像素读取接口来...

来源: Laya2.0_文档 发布时间: 20210714

4. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 88%]

... 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; ``` ![](img...

来源: Laya2.0_文档 发布时间: 20210714

5. 创建材质(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 88%]

... false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex){ //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ``` ![](img...

来源: Laya2.0_文档 发布时间: 20210714

6. RenderTexture的像素读取(ActionScript-3D基础(AS3)-LayaAir3D之纹理) [ 88%]

# RenderTexture的像素读取 ###### *version :2.1.0 Update:2019-5-25* ​ 在之前的RenderTexture的使用还是实时的渲染 “摄像机”。但是在很多的时候我需要像相机一样 “拍”一张照片,这样我们就可以使用RenderTexture的 `getData` 像素读取接口来...

来源: Laya2.0_文档 发布时间: 20210714

7. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 87%]

...//创建材质 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

8. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 85%]

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

9. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 84%]

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

10. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 84%]

...//新建材质 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