大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0025 秒)
...xture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTexture); //获得模糊shader var shader:Shader3D ...
来源: Laya3.0_文档 发布时间: 20251010
...以及显存占用和渲染性能。 在 LayaAir3 中,支持RGBA32(R8G8B8A8)、RGB24(R8G8B8)、压缩纹理格式,这三种。不同纹理格式的选择会直接影响内存消耗、加载速度与画质表现。 2.8.1 RGBA32 / R8G8B8A8 描述:每个像素占用 32 位(4 字节)...
来源: Laya3.0_文档 发布时间: 20251128
...var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = new Sprite(); //使用Sprite对象的绘制纹理方式 sp2.graphics.drawTexture(textur...
来源: Laya3.0_文档 发布时间: 20230303
... 2.8 纹理格式 图集支持三种类型的纹理格式: RGBA32(R8G8B8A8):默认格式,每像素占 32 位,包含红、绿、蓝、透明四个通道。 RGB24(R8G8B8):每像素占 24 位,仅包含 RGB 三通道,不带透明通道。 压缩纹理格式:使用 GPU 专用压...
来源: Laya3.0_文档 发布时间: 20251128
...renderTarget = new Laya.RenderTexture(256, 256, Laya.RenderTargetFormat.R8G8B8A8, Laya.RenderTargetFormat.DEPTHSTENCIL_24_8); // 再将离屏3D画到2D节点上,至此,就完成把3D画到2D的基础渲染流程 sp.texture = new Laya.Texture(_camera.renderTarget); 运行效果如本篇开始的...
来源: Laya3.0_文档 发布时间: 20251010
...t = Laya.RenderTexture.createFromPool(512, 512, Laya.RenderTargetFormat.R8G8B8A8, Laya.RenderTargetFormat.DEPTH_16, false, 1); //渲染顺序 this.renderTargetCamera.renderingOrder = -1; //清除标记 this.renderTargetCamera.clearFlag = Laya.CameraClearFlags.Sky; //创建一个UnlitMaterial材质 v...
来源: Laya3.0_文档 发布时间: 20251010