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

NameTypeAccessDescription
ShaderSetShaderSetRead/WriteGets or sets the shader set that used to render the scene
VariablesRendererVariableManagerReadAccess to the internal variables used for rendering
PresetShadersPresetShadersRead/WriteGets or sets the preset shader set
RenderFactoryRenderFactoryReadGets the factory to build render-related objects.
AssetDirectoriesList<string>ReadDirectories that stored external assets
PostProcessingsIList<PostProcessing>ReadActive post-processing chain
EnableShadowsboolRead/WriteGets or sets whether to enable shadows.
RenderTargetIRenderTargetReadSpecify the render target that the following render operations will be performed on.
NodeNodeRead/WriteGets or sets the instance used to provide world transform matrix.
FrustumFrustumRead/WriteGets or sets the frustum that used to provide view matrix.
RenderStageRenderStageReadGets the current render stage.
MaterialMaterialRead/WriteGets or sets the material that used to provide material information used by shaders.
ShaderShaderProgramRead/WriteGets or sets the shader instance used for rendering the geometry.
FallbackEntityRendererEntityRendererRead/WriteGets or sets the fallback entity renderer when the entity has no special renderer defined.

Methods

SignatureDescription
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

See Also

 English