Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Types.SCommandBuffer Class Reference
Inheritance diagram for SineSpace.Scripting.Types.SCommandBuffer:
ScriptClassWrapper< T > ScriptClass

Public Member Functions

void DrawRenderer (SRenderer< Renderer > renderer, SMaterial material)
 Add a "draw renderer" command.
 
void Blit (SMaterial mat)
 Add a "bit into a render texture" command.
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Member Function Documentation

◆ Blit()

void SineSpace.Scripting.Types.SCommandBuffer.Blit ( SMaterial mat)

Add a "bit into a render texture" command.

Parameters
matMaterial to use.
local commandbuffer=Space.PostFX.CreateCommandBuffer()
local mat=Space.Resources[1]
commandbuffer.Blit(mat.AsMaterial)
Space.PostFX.AddCommandBufferToCamera(commandbuffer)

◆ DrawRenderer()

void SineSpace.Scripting.Types.SCommandBuffer.DrawRenderer ( SRenderer< Renderer > renderer,
SMaterial material )

Add a "draw renderer" command.

Parameters
rendererThe renderer you want to draw
materialThe material you want to draw
local commandbuffer=Space.PostFX.CreateCommandBuffer()
local mat=Space.Resources[1]
local cube=Space.Host.GetReference("Cube")
commandbuffer.DrawRenderer(cube.Renderer,mat.AsMaterial)
Space.PostFX.AddCommandBufferToCamera(commandbuffer)