Return a new CommandBuffer.
local mat=Space.Resources[1]
local cube=Space.Host.GetReference("Cube")
commandbuffer.DrawRenderer(cube.Renderer,mat.AsMaterial)
Add the CommandBuffer to the Main Camera.
Remove the CommandBuffer from the Main Camera.
local mat=Space.Resources[1]
local cube=Space.Host.GetReference("Cube")
commandbuffer.DrawRenderer(cube.Renderer,mat.AsMaterial)
Space.PostFX.AddCommandBufferToCamera(commandbuffer)
function RemoveCommandBuffer()
--Bind this function to a button and then click it in playing.
Space.PostFX.RemoveCommandBufferFromCamera(commandbuffer)
Set a custom Space Post-Processing Profile.
--Create a Legacy/Space Post-processing profile.
Clear current Post-Processing profile and restore default one.
--Create a Legacy/Space Post-processing profile.
Space.PostFX.SetPostProfile(file)
|