This article's documentation is for anything that uses the Source engine. Click here for more information.

Func lod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{Underlinked|date=January 2024}}
{{LanguageBar}}
 
{{CD|CFunc_LOD|file1=func_lod.cpp}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Func lod}}{{CD|CFunc_LOD|file1=func_lod.cpp}}
{{this is a|brush entity|name=func_lod}}
{{this is a|brush entity|name=func_lod}}


Line 9: Line 8:


== Keyvalues ==
== Keyvalues ==
{{Brush rendering note}}
{{KV Targetname}}
{{KV|Disappear Distance|intn=DisappearDist|integer|Distance at which these brushes should fade out. Acts as "Min Disappear Distance" (and +800 as max distance) in L4D and newer games.}}
{{KV|Disappear Distance|intn=DisappearDist|integer|Distance at which these brushes should fade out. Acts as "Min Disappear Distance" (and +800 as max distance) in L4D and newer games.}}
{{KV|Min Disappear Distance|intn=DisappearMinDist|integer|Distance at which these brushes should start fading out.|since={{l4d}}}}
{{KV|Min Disappear Distance|intn=DisappearMinDist|integer|Distance at which these brushes should start fading out.|since={{l4d}}}}
Line 17: Line 19:
{{note|Using AddOutput this entity can be only changed from solid to nonsolid.}}
{{note|Using AddOutput this entity can be only changed from solid to nonsolid.}}
}}
}}
{{KV Targetname}}

Revision as of 08:43, 13 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CFunc_LOD
CBaseEntity
C++ func_lod.cpp

func_lod is a brush entity available in all Source Source games.

It is a brush-built model that fades out over a specified distance. Useful for creating world detail that doesn't need to be drawn far away, for performance reasons.

Note.pngNote:The fading is not always consistent; brushes may suddenly "pop" into view depending on where the player is looking. This happens because of a hardware issues with rendering translucent materials. Low-end cards will fade nearer than the distance specified, and smaller objects fade nearer than a larger object with the same fade distance.

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs


Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Disappear Distance (DisappearDist) <integer>
Distance at which these brushes should fade out. Acts as "Min Disappear Distance" (and +800 as max distance) in L4D and newer games.
Min Disappear Distance (DisappearMinDist) <integer> (in all games since Left 4 Dead)
Distance at which these brushes should start fading out.
Max Disappear Distance (DisappearMaxDist) <integer> (in all games since Left 4 Dead)
Distance at which these brushes should finish fading out.
Solid (Solid) <choices>
Set whether or not these brushes should collide with other entities.
  • 0: Solid
  • 1: Nonsolid
Note.pngNote:Using AddOutput this entity can be only changed from solid to nonsolid.