Class WorldNode.ClutterSceneObject
Namespace: ValveResourceFormat.ResourceTypes
Assembly: ValveResourceFormat.dll
One entry of WorldNode.ClutterSceneObjects: a model drawn at many compiled instance placements, such as detail props.
public class WorldNode.ClutterSceneObjectInheritance
object ← WorldNode.ClutterSceneObject
Constructors
ClutterSceneObject(KVObject)
Reads a clutter scene object from its keyvalues.
public ClutterSceneObject(KVObject data)Parameters
data KVObject
An entry of WorldNode.ClutterSceneObjects.
Properties
BeginCullSize
Gets the screen size fraction below which instances start to fade out, reaching fully faded at WorldNode.ClutterSceneObject.EndCullSize. Which instances are dropped depends on WorldNode.ClutterSceneObject.EndCullSize alone.
public float BeginCullSize { get; }Property Value
float
EndCullSize
Gets the screen size fraction below which instances are no longer drawn.
public float EndCullSize { get; }Property Value
float
Flags
Gets the object type flags shared by all instances.
public ObjectTypeFlags Flags { get; }Property Value
InstanceOrientations
Gets the world space rotation of each instance.
public Quaternion[] InstanceOrientations { get; }Property Value
InstancePositions
Gets the world space position of each instance.
public Vector3[] InstancePositions { get; }Property Value
Vector3[]
InstanceScales
Gets the uniform scale of each instance.
public float[] InstanceScales { get; }Property Value
float[]
InstanceTints
Gets the sRGB tint of each instance, in the 0-255 range.
public Vector3[] InstanceTints { get; }Property Value
Vector3[]
Layer
Gets the index into WorldNode.LayerNames.
public int Layer { get; }Property Value
int
MaterialGroup
Gets the material group (skin) of the model, empty for the default.
public string MaterialGroup { get; }Property Value
string
RenderableModel
Gets the model every instance draws.
public string RenderableModel { get; }Property Value
string
Tiles
Gets the tiles that split the instances into spatially grouped ranges.
public WorldNode.ClutterSceneObject.Tile[] Tiles { get; }Property Value
WorldNode.ClutterSceneObject.Tile[]
Methods
GetInstanceTransform(int)
Gets the world transform of one instance: its uniform scale, then rotation, then position.
public Matrix4x4 GetInstanceTransform(int index)Parameters
index int
The instance index.

