Class SceneBackground
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Default scene background with configurable solid or gradient rendering.
csharp
public class SceneBackground : SceneSkybox2DInheritance
object ← SceneSkybox2D ← SceneBackground
Inherited Members
SceneSkybox2D.Tint, SceneSkybox2D.Transform, SceneSkybox2D.Material, SceneSkybox2D.Render()
Constructors
SceneBackground(Scene)
Initializes a new instance of the class using the background shader.
csharp
public SceneBackground(Scene scene)Parameters
scene Scene
The scene this background belongs to.
Methods
SetLightBackground(bool)
Enables or disables the light background rendering mode.
csharp
public void SetLightBackground(bool enabled)Parameters
enabled bool
Whether to enable the light background.
SetSolidBackground(bool)
Enables or disables the solid background rendering mode.
csharp
public void SetSolidBackground(bool enabled)Parameters
enabled bool
Whether to enable the solid background.

