API Reference · Scene and camera
LevelOfDetail
public sealed record class LevelOfDetailA coarser version of a MeshNode's mesh, drawn in its place from a distance onwards.
Why distance and not screen size. Screen size is the better measure in principle — it knows the field of view and the resolution — and it is also the one a person cannot reason about while placing ferns in a forest. "Past eight metres the fern is the light one" can be checked by walking eight metres; a coverage fraction cannot. It is what three.js and Babylon.js ask for, and the reason is the same.
Constructors
| Member | Description |
|---|---|
| A coarser version of a Why distance and not screen size. Screen size is the better measure in principle — it knows the field of view and the resolution — and it is also the one a person cannot reason about while placing ferns in a forest. "Past eight metres the fern is the light one" can be checked by walking eight metres; a coverage fraction cannot. It is what three.js and Babylon.js ask for, and the reason is the same.
|
Properties
| Member | Description |
|---|---|
| From how far away this level is drawn, in world units: the distance from the camera to the centre of the copy's bounds. It is drawn until the next level's distance, or until |
| How it is shaded, or null to wear the node's own material. |
| The geometry drawn from that distance. |