Table of Contents

Class WorldSurfaceDefaults

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The neutral world the core's surface shaders see before any world module sets its globals: dry, calm, no snow, no season, and a mild sky's ambient light.

public static class WorldSurfaceDefaults
Inheritance
WorldSurfaceDefaults
Inherited Members

Remarks

Core (Phase 4 of the core and modules plan, 2026-11-17; the "core surface stack" decision). FishWeatherLit and FishVegetation, with their includes (Assets/FishMMO/Shaders/Surface), are core rendering: core content (the characters, the teleporter, the gathering nodes) is drawn with them. Their globals are core-owned, and the world modules only set them: the sky its ambient, the weather its wind, cover and snow line, the terrain its ground maps.

Unset globals read zero, and the surface shaders are written so that zero is the neutral world: no cloud, rain, wind, cover or season; every map off until its rect, info or switch says it is set; the distance blends and the vegetation fade off while their bands are empty. The one exception is the ambient light, which at zero is black: it is set here once before the first scene loads, and the sky overwrites it every frame when it is installed.

Fields

AmbientEquator

public static readonly Color AmbientEquator

Field Value

Color

AmbientEquatorId

public static readonly int AmbientEquatorId

Field Value

int

AmbientGround

public static readonly Color AmbientGround

Field Value

Color

AmbientGroundId

public static readonly int AmbientGroundId

Field Value

int

AmbientSky

A mild overcast day's ambient, linear: what lights a plant or a falling flake with no sky installed.

public static readonly Color AmbientSky

Field Value

Color

AmbientSkyId

public static readonly int AmbientSkyId

Field Value

int

Methods

Apply()

Sets the neutral values. The world modules set theirs after, every frame they run.

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void Apply()