Type:CameraClearMode

From Resonite Wiki
Revision as of 17:32, 15 October 2024 by 989onan (talk | contribs) (add mega info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This enum informs a rendering component like a Camera or a Camera Portal (mirror) to clear the buffer with when rendering a new frame. OpenGL, DX11, and other rendering engines render on top of the previous pixels when drawing, and this determines what is done with the pixels it doesn't draw over.

Values
Name Value Description
Skybox 0 When rendering, clear unrendered pixels with the skybox in the world. This is the expected behavior to match realism.
Color 1 When rendering, clear unrendered pixels with a color. This is useful in circumstances like green screens
Depth 2 This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Nothing 3 Don't replace non drawn pixels every frame. This can cause smearing and bright flashes and blooming when enabled. This is not Photo Sensitive friendly!!!