s&box docs

public abstract class Sandbox.Renderer : Sandbox.Component

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 4 methods

protected void BackupRenderAttributes(Sandbox.RenderAttributes attributes)

Backup the specified RenderAttributes so we can restore them later with `Sandbox.Renderer.RestoreRenderAttributes(Sandbox.RenderAttributes)`

public virtual void CopyFrom(Sandbox.Renderer other)

Copy everything from another renderer

protected virtual void OnRenderOptionsChanged()

protected void RestoreRenderAttributes(Sandbox.RenderAttributes attributes)

Restore any attributes that were previously backed up with `Sandbox.Renderer.BackupRenderAttributes(Sandbox.RenderAttributes)`

Properties

Showing 4 properties

public Sandbox.RenderAttributes Sandbox.Renderer.Attributes { get; set; }

Attributes that are applied to the renderer based on the current material and shader. If the renderer is disabled, the changes are deferred until it is enabled again. Attributes are not saved to disk, and are not cloned when copying the renderer.

public Sandbox.Rendering.CommandList Sandbox.Renderer.ExecuteAfter { get; set; }

A command list which is executed immediately after rendering this

public Sandbox.Rendering.CommandList Sandbox.Renderer.ExecuteBefore { get; set; }

A command list which is executed immediately before rendering this

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Renderer

On this page