Renderer class

Renderer class

The context about renderer.

The Renderer type exposes the following members:

Properties

PropertyDescription
shader_setGets or sets the shader set that used to render the scene
variablesAccess to the internal variables used for rendering
preset_shadersGets or sets the preset shader set
render_factoryGets the factory to build render-related objects.
asset_directoriesDirectories that stored external assets
post_processingsActive post-processing chain
enable_shadowsGets or sets whether to enable shadows.
render_targetSpecify the render target that the following render operations will be performed on.
nodeGets or sets the Renderer.node instance used to provide world transform matrix.
frustumGets or sets the frustum that used to provide view matrix.
render_stageGets the current render stage.
materialGets or sets the material that used to provide material information used by shaders.
shaderGets or sets the shader instance used for rendering the geometry.
fallback_entity_rendererGets or sets the fallback entity renderer when the entity has no special renderer defined.

Methods

MethodDescription
clear_cacheManually 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.
get_post_processingGets a built-in post-processor that supported by the renderer.
executeExecute an post processing on specified render target
create_rendererCreates a new Renderer with default profile.
register_entity_rendererRegister the entity renderer for specified entity
renderRender the specified target

See Also