Renderer
Overview
Renderer is a class in Aspose.3D FOSS for .NET.
Inherits from: IDisposable.
The context about renderer.
This class provides 7 methods for working with Renderer objects in .NET programs.
Available methods include: ClearCache, CreateRenderer, Dispose, Execute, GetPostProcessing, RegisterEntityRenderer, Render.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: AssetDirectories, EnableShadows, FallbackEntityRenderer, Frustum, Material, Node, and 8 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ShaderSet | ShaderSet | Read/Write | Gets or sets the shader set that used to render the scene |
Variables | RendererVariableManager | Read | Access to the internal variables used for rendering |
PresetShaders | PresetShaders | Read/Write | Gets or sets the preset shader set |
RenderFactory | RenderFactory | Read | Gets the factory to build render-related objects. |
AssetDirectories | List<string> | Read | Directories that stored external assets |
PostProcessings | IList<PostProcessing> | Read | Active post-processing chain |
EnableShadows | bool | Read/Write | Gets or sets whether to enable shadows. |
RenderTarget | IRenderTarget | Read | Specify the render target that the following render operations will be performed on. |
Node | Node | Read/Write | Gets or sets the instance used to provide world transform matrix. |
Frustum | Frustum | Read/Write | Gets or sets the frustum that used to provide view matrix. |
RenderStage | RenderStage | Read | Gets the current render stage. |
Material | Material | Read/Write | Gets or sets the material that used to provide material information used by shaders. |
Shader | ShaderProgram | Read/Write | Gets or sets the shader instance used for rendering the geometry. |
FallbackEntityRenderer | EntityRenderer | Read/Write | Gets or sets the fallback entity renderer when the entity has no special renderer defined. |
Methods
| Signature | Description |
|---|---|
ClearCache() | Manually clear the cache. |
GetPostProcessing(name: string) | Gets a built-in post-processor that supported by the renderer. |
Execute(postProcessing: PostProcessing, result: IRenderTarget) | Execute an post processing on specified render target |
CreateRenderer() | Creates a new Renderer with default profile. |
Dispose() | Dispose the Renderer and all related resources |
RegisterEntityRenderer(renderer: EntityRenderer) | Register the entity renderer for specified entity |
Render(renderTarget: IRenderTarget) | Render the specified target |