IRenderTexture
概述
IRenderTexture 是 Aspose.3D FOSS 中用于 .NET 的接口。继承自:IRenderTarget,IDisposable。
渲染纹理的接口
此接口提供 1 个方法,用于在 .NET 程序中处理 IRenderTexture 对象。可用的方法包括:CreateViewport。在安装了用于 .NET 的 Aspose.3D FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:DepthTexture,Size,Targets,Viewports。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Targets | IList<ITextureUnit> | 读取 | 颜色输出目标。 |
DepthTexture | ITextureUnit | 读取 | 深度缓冲纹理 |
Size | Vector2 | 读写 | 获取或设置渲染目标的大小。 |
Viewports | IList<Viewport> | 读取 | 获取与此渲染目标关联的所有视口。 |
方法
| 签名 | 描述 |
|---|---|
CreateViewport(camera: Camera, backgroundColor: Vector3, rect: RelativeRectangle) | 在指定的相机视角中创建具有指定背景颜色和位置/尺寸的视口。 |