Struct SceneClutter.Instance ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
One instance with its place in the compiled tile it belongs to.
csharp
public readonly record struct SceneClutter.Instance : IEquatable<SceneClutter.Instance>Implements ​
IEquatable<SceneClutter.Instance>
Constructors ​
Instance(Matrix4x4, float, int, int) ​
One instance with its place in the compiled tile it belongs to.
csharp
public Instance(Matrix4x4 Transform, float Scale, int IndexInTile, int TileInstanceCount)Parameters ​
Transform Matrix4x4
World transform of the instance.
Scale float
Uniform scale of the instance.
IndexInTile int
Index of the instance within its tile.
TileInstanceCount int
Number of instances in the tile.
Properties ​
IndexInTile ​
Index of the instance within its tile.
csharp
public int IndexInTile { get; init; }Property Value ​
int
Scale ​
Uniform scale of the instance.
csharp
public float Scale { get; init; }Property Value ​
float
TileInstanceCount ​
Number of instances in the tile.
csharp
public int TileInstanceCount { get; init; }Property Value ​
int
Transform ​
World transform of the instance.
csharp
public Matrix4x4 Transform { get; init; }
