Class SceneSkybox2D
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Renders a 2D skybox using a fullscreen cube.
public class SceneSkybox2DInheritance
object ← SceneSkybox2D
Derived
Constructors
SceneSkybox2D(RenderMaterial)
Initializes a new instance of the SceneSkybox2D class with the given material.
public SceneSkybox2D(RenderMaterial material)Parameters
material RenderMaterial
The material to use for skybox rendering.
Properties
AngularFog
Gets the angles in degrees an angular fog fades over: below the horizon where it starts and where it is full (X, Y), and above it where it is full and where it ends (Z, W).
public Vector4 AngularFog { get; init; }Property Value
FogType
Gets how the sky is fogged.
public SkyFogType FogType { get; init; }Property Value
Material
Gets or sets the material used to render the skybox.
public RenderMaterial Material { get; set; }Property Value
Tint
Gets the color tint multiplied with the skybox texture during rendering.
public Vector3 Tint { get; init; }Property Value
Transform
Gets the rotation transform applied to the skybox cube.
public Matrix4x4 Transform { get; init; }Property Value
Methods
Delete()
Releases owned GPU resources.
public virtual void Delete()Render(LinearFog?, Camera?)
Renders the skybox using a fullscreen 36-vertex cube draw call.
public void Render(LinearFog? fog = null, Camera? camera = null)Parameters
fog LinearFog?
The fog of the map the sky is fogged with, or null to draw it without fog.
camera Camera?
The camera of the view, whose far plane a sky fogged by distance is at.

