Last updated 2 years ago
Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.
void DrawRenderer ( renderer, material)
Add a "draw renderer" command.
void Blit ( mat)
Add a "bit into a render texture" command.
commandbuffer=Space.PostFX.CreateCommandBuffer() mat=Space.Resources[1] cube=Space.Host.GetReference("Cube") commandbuffer.DrawRenderer(cube.Renderer,mat.AsMaterial) Space.PostFX.AddCommandBufferToCamera(commandbuffer)
commandbuffer=Space.PostFX.CreateCommandBuffer() mat=Space.Resources[1] commandbuffer.Blit(mat.AsMaterial) Space.PostFX.AddCommandBufferToCamera(commandbuffer)