SCommandBuffer

DrawRenderer

void DrawRenderer (SRenderer renderer, SMaterial material)

Add a "draw renderer" command.

ParameterTypeDescription

commandbuffer=Space.PostFX.CreateCommandBuffer()
mat=Space.Resources[1]
cube=Space.Host.GetReference("Cube")
commandbuffer.DrawRenderer(cube.Renderer,mat.AsMaterial)
Space.PostFX.AddCommandBufferToCamera(commandbuffer)

Blit

void Blit (SMaterial mat)

Add a "bit into a render texture" command.

ParameterTypeDescription

commandbuffer=Space.PostFX.CreateCommandBuffer()
mat=Space.Resources[1]
commandbuffer.Blit(mat.AsMaterial)
Space.PostFX.AddCommandBufferToCamera(commandbuffer)

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.