Struct RenderSettings ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Rendering toggles shared by all scenes.
public record struct RenderSettings : IEquatable<RenderSettings>Implements ​
Constructors ​
RenderSettings() ​
Initializes the toggles to their defaults.
public RenderSettings()Properties ​
DisableAllCulling ​
Gets or sets whether all culling is skipped.
public bool DisableAllCulling { readonly get; set; }Property Value ​
bool
DrawFilter ​
Gets or sets the IDrawFilter that decides which materials are drawn, such as a tool hiding tools materials. Without one, every material is drawn.
public IDrawFilter? DrawFilter { readonly get; set; }Property Value ​
EnableBarnLights ​
Gets or sets whether barn lights are drawn.
public bool EnableBarnLights { readonly get; set; }Property Value ​
bool
EnableCompaction ​
Gets or sets whether GPU culled draws are compacted.
public bool EnableCompaction { readonly get; set; }Property Value ​
bool
EnableDepthPrepass ​
Gets or sets whether a depth prepass is drawn before opaques.
public bool EnableDepthPrepass { readonly get; set; }Property Value ​
bool
EnableDrawBatching ​
Gets or sets whether consecutive draws of one mesh and material are drawn by a single multidraw.
public bool EnableDrawBatching { readonly get; set; }Property Value ​
bool
EnableIndirectDraws ​
Gets or sets whether aggregates are culled on the GPU and drawn indirectly.
public bool EnableIndirectDraws { readonly get; set; }Property Value ​
bool
EnableOcclusionCulling ​
Gets or sets whether GPU culling also tests occlusion.
public bool EnableOcclusionCulling { readonly get; set; }Property Value ​
bool
EnablePvsCulling ​
Gets or sets whether PVS culling is enabled.
public bool EnablePvsCulling { readonly get; set; }Property Value ​
bool
EnableScreenSpaceAo ​
Gets or sets whether the surfaces that accept screen space ambient occlusion are darkened by it. Needs the depth prepass.
public bool EnableScreenSpaceAo { readonly get; set; }Property Value ​
bool
EnableTiledLightCulling ​
Gets or sets whether lights are culled per screen tile.
public bool EnableTiledLightCulling { readonly get; set; }Property Value ​
bool
EnableVisBoxCulling ​
Gets or sets whether info_visibility_box volumes cull.
public bool EnableVisBoxCulling { readonly get; set; }Property Value ​
bool
FogEnabled ​
Gets or sets whether fog is drawn.
public bool FogEnabled { readonly get; set; }Property Value ​
bool
OcclusionDebugEnabled ​
Gets or sets whether occluded bounds are drawn.
public bool OcclusionDebugEnabled { readonly get; set; }Property Value ​
bool
RenderMode ​
Gets or sets the shader id of the active render mode, 0 being the regular lit view.
public int RenderMode { readonly get; set; }Property Value ​
int
ShowSkybox ​
Gets or sets whether the 3D sky is drawn.
public bool ShowSkybox { readonly get; set; }Property Value ​
bool
StaticSunShadows ​
Gets or sets whether static geometry casts sun shadows even where the lightmap already holds them.
public bool StaticSunShadows { readonly get; set; }Property Value ​
bool
VolumetricFogEnabled ​
Gets or sets whether volumetric fog is drawn.
public bool VolumetricFogEnabled { readonly get; set; }Property Value ​
bool

