Show / Hide Table of Contents

Interface ITerrainNature

Terrain nature layout interface.

Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public interface ITerrainNature

Properties

| Improve this Doc View Source

NatureMeshUsed

This should return true if any nature flat is replaced by a 3d model.

It's used by DFU streaming world to trigger nature layout for map pixels moving between distance 1 and 2 when 3d models are used. Distance 1 use models, but map pixels at distance 2+ still use billboards for performance.

Declaration
bool NatureMeshUsed { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

LayoutNature(DaggerfallTerrain, DaggerfallBillboardBatch, Single, Int32)

Layout nature flats for a map pixel.

Declaration
void LayoutNature(DaggerfallTerrain dfTerrain, DaggerfallBillboardBatch dfBillboardBatch, float terrainScale, int terrainDist)
Parameters
Type Name Description
DaggerfallTerrain dfTerrain

The terrain object for the map pixel

DaggerfallBillboardBatch dfBillboardBatch

Daggerfall billboard batcher object to add flats to

Single terrainScale

Terrain scale being used by streaming world

Int32 terrainDist

Distance of this map pixel from the one the player is currently in

  • Improve this Doc
  • View Source
In This Article
  • Properties
    • NatureMeshUsed
  • Methods
    • LayoutNature(DaggerfallTerrain, DaggerfallBillboardBatch, Single, Int32)
Back to top Generated by DocFX