API Referenceaurora
Biome
Terrain appearance and height, moisture, and temperature selection settings.
Module: aurora
Terrain appearance and height, moisture, and temperature selection settings.
Declaration
export class Biome { ... }Constructors
Creates a new biome.
constructor(
name: string,
texture: Texture,
color: Color,
useTexture: boolean,
);Properties
name
The human-readable name.
name: string;texture
The texture used for rendering.
texture: Texture;color
The RGBA color.
color: Color;useTexture
Whether the texture is used instead of the fallback color.
useTexture: boolean;minHeight
The minimum height.
minHeight: number;maxHeight
The maximum height.
maxHeight: number;minMoisture
The minimum moisture.
minMoisture: number;maxMoisture
The maximum moisture.
maxMoisture: number;minTemperature
The minimum temperature.
minTemperature: number;maxTemperature
The maximum temperature.
maxTemperature: number;condition
The current weather condition.
condition: BiomeFunction;Methods
attachTexture
Attaches a texture to this object.
attachTexture(texture: Texture): void;