Class Renderer

Renderer class

The context about renderer.

public abstract class Renderer : IDisposable

Properties

NameDescription
AssetDirectories { get; }Directories that stored external assets
EnableShadows { get; set; }Gets or sets whether to enable shadows.
FallbackEntityRenderer { get; set; }Gets or sets the fallback entity renderer when the entity has no special renderer defined.
virtual Frustum { get; set; }Gets or sets the frustum that used to provide view matrix.
virtual Material { get; set; }Gets or sets the material that used to provide material information used by shaders.
Node { get; set; }Gets or sets the Node instance used to provide world transform matrix.
PostProcessings { get; }Active post-processing chain
PresetShaders { get; set; }Gets or sets the preset shader set
abstract RenderFactory { get; }Gets the factory to build render-related objects.
RenderStage { get; }Gets the current render stage.
RenderTarget { get; }Specify the render target that the following render operations will be performed on.
Shader { get; set; }Gets or sets the shader instance used for rendering the geometry.
ShaderSet { get; set; }Gets or sets the shader set that used to render the scene
Variables { get; }Access to the internal variables used for rendering

Methods

NameDescription
static CreateRenderer()Creates a new Renderer with default profile.
virtual ClearCache()Manually clear the cache. Aspose.3D will cache some objects like materials/geometries into internal types that compatible with the render pipeline. This should be manually called when scene has major changes.
Dispose()Dispose the Renderer and all related resources
abstract Execute(PostProcessing, IRenderTarget)Execute an post processing on specified render target
GetPostProcessing(string)Gets a built-in post-processor that supported by the renderer.
virtual RegisterEntityRenderer(EntityRenderer)Register the entity renderer for specified entity
virtual Render(IRenderTarget)Render the specified target

See Also