public abstract class Sandbox.Renderer : Sandbox.Component
Related Guides
Broader workflow and conceptual references connected to this API.
If you want a specific file/asset type to have a custom Thumbnail/Inspector Preview, you can simply create an AssetPreview. An AssetPreview initializes a SceneWorld and SceneCamera, rendering the Camera to the Preview output, so all you need to do is populate it and/or position the Camera to your liking.
You can record gameplay into a MovieClip, which can be played back or imported into Movie Maker for editing. This could be useful for killcams in shooters, leaderboard replays in racing games, or for capturing gameplay to edit into a trailer.
These are helper classes that aid using features from the renderer in an easy way.
Command Lists are deferred commands to execute on the renderer on certain rendering stage, this replaces the previous RenderHook system
We'll be releasing s&box on Steam on the 28th April for $20.
GPU instancing is an optimization where multiple instances of the same model with the same material can be drawn in a single draw call. This is a big optimization when rendering things that appear many times in a scene such as foliage.
Constructors
Showing 1 constructors
protected Renderer()
No results match this filter.
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)`
No results match this filter.
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
public Sandbox.RenderOptions Sandbox.Renderer.RenderOptions { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Renderer |