Table of Contents

Class SceneGlow

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The cold glow of faerie, rune and crystal light (2026-10-18, I6g; Glow): its tint, its soft slow pulse and when it shows. One definition read by the client's site lights (SiteLightPool) and, constant for constant, by the glowing parts of the pieces that give it off (FishStructureWeathering.hlsl FishStructureGlowLight), so a rune stone's runes brighten and dim with the light they cast.

public static class SceneGlow
Inheritance
SceneGlow
Inherited Members

Remarks

Shared by every player. The pulse is a pure function of the shared motion clock (WorldMotion, wrapped at WrapSeconds as the shaders' _FishWeatherMisc.w is) and the glow's place: no per-client state, so two players side by side see the same rune brighten at the same instant. Each beat's rate is a whole number of cycles in the wrap, so the pulse meets itself across it instead of jumping. Its phase is a smooth field over the ground (two slow waves), not a hash, so a light and the stone it stands in front of — half a metre apart — pulse as one, while glows down a street breathe one after another.

When. Lamps light at dusk (SkySystem's _FishNightLights, as the sun goes below 7°); a glow already shows, faintly, from the sun at 19° (Visibility(float), published as _FishGlowLights), and is full in the night. Underground it is full day and night, as a buried lamp is.

Flicker (2026-10-18, decision 33: stormglass, a crystal full of cloud with threads of lightning in it). A glow whose seed carries FlickerBit crackles instead of breathing (Flicker(float, float, float)): a low steady glow with bright, uneven flashes, the same pure function of the shared clock and the place, so the crystal on a post and the light it casts flash together while the next post's flash at their own moments. Its parts' material flickers by the same constants (FishStructureWeathering.hlsl FishGlowFlicker).

Fields

CrackleAHz

The flicker's waves, cycles a second: three crackles whose product flashes when they meet, and a fast shiver in the flash. Each a whole number of cycles in the wrap (tenths of a hertz in 10 000 s).

public const float CrackleAHz = 2.3

Field Value

float

CrackleAX

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleAX = 0.13

Field Value

float

CrackleAZ

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleAZ = 0.17

Field Value

float

CrackleBHz

The flicker's waves, cycles a second: three crackles whose product flashes when they meet, and a fast shiver in the flash. Each a whole number of cycles in the wrap (tenths of a hertz in 10 000 s).

public const float CrackleBHz = 3.7

Field Value

float

CrackleBX

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleBX = -0.11

Field Value

float

CrackleBZ

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleBZ = 0.07

Field Value

float

CrackleCHz

The flicker's waves, cycles a second: three crackles whose product flashes when they meet, and a fast shiver in the flash. Each a whole number of cycles in the wrap (tenths of a hertz in 10 000 s).

public const float CrackleCHz = 0.7

Field Value

float

CrackleCX

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleCX = 0.05

Field Value

float

CrackleCZ

The flicker's phase over the ground, cycles a metre (x, z) for each crackle: posts a street apart flash apart.

public const float CrackleCZ = -0.09

Field Value

float

DuskShare

How much of the glow shows by the time the lamps light.

public const float DuskShare = 0.3

Field Value

float

FirstShows

The sun's height (sine of its elevation) where a glow begins to show, where it is a third lit (lamps begin), and where it is full.

public const float FirstShows = 0.32

Field Value

float

FlashDepth

The flicker: its steady glow between flashes, how much a full flash adds, where the crackles' product begins to flash (it runs between FlickerBase and 1), and how much of the flash shivers.

public const float FlashDepth = 0.55

Field Value

float

FlashFrom

The flicker: its steady glow between flashes, how much a full flash adds, where the crackles' product begins to flash (it runs between FlickerBase and 1), and how much of the flash shivers.

public const float FlashFrom = 0.3

Field Value

float

FlickerBase

The flicker: its steady glow between flashes, how much a full flash adds, where the crackles' product begins to flash (it runs between FlickerBase and 1), and how much of the flash shivers.

public const float FlickerBase = 0.45

Field Value

float

FlickerBit

The seed bit of a glow that flickers (Flicker(float, float, float)) instead of pulsing (bit 11).

public const uint FlickerBit = 2048

Field Value

uint

FullNight

The sun's height (sine of its elevation) where a glow begins to show, where it is a third lit (lamps begin), and where it is full.

public const float FullNight = -0.04

Field Value

float

Intensity

A glow's light: its brightness at the top of its pulse, and its reach (when its emitter names none), metres.

public const float Intensity = 1.3

Field Value

float

LampsLight

The sun's height (sine of its elevation) where a glow begins to show, where it is a third lit (lamps begin), and where it is full.

public const float LampsLight = 0.12

Field Value

float

PulseMiddle

The pulse: its middle and each beat's depth (it runs between 0.56 and 1).

public const float PulseMiddle = 0.78

Field Value

float

Range

A glow's light: its brightness at the top of its pulse, and its reach (when its emitter names none), metres.

public const float Range = 6

Field Value

float

ShiverDepth

The flicker: its steady glow between flashes, how much a full flash adds, where the crackles' product begins to flash (it runs between FlickerBase and 1), and how much of the flash shivers.

public const float ShiverDepth = 0.3

Field Value

float

ShiverHz

The flicker's waves, cycles a second: three crackles whose product flashes when they meet, and a fast shiver in the flash. Each a whole number of cycles in the wrap (tenths of a hertz in 10 000 s).

public const float ShiverHz = 11.3

Field Value

float

SlowDepth

The pulse: its middle and each beat's depth (it runs between 0.56 and 1).

public const float SlowDepth = 0.14

Field Value

float

SlowHz

The pulse's two beats, cycles a second: about nine seconds and about twenty-three a breath.

public const float SlowHz = 0.11

Field Value

float

SlowWaveX

The pulse's phase over the ground: cycles a metre along world x and z, for each beat.

public const float SlowWaveX = 0.037

Field Value

float

SlowWaveZ

The pulse's phase over the ground: cycles a metre along world x and z, for each beat.

public const float SlowWaveZ = 0.029

Field Value

float

SlowerDepth

The pulse: its middle and each beat's depth (it runs between 0.56 and 1).

public const float SlowerDepth = 0.08

Field Value

float

SlowerHz

The pulse's two beats, cycles a second: about nine seconds and about twenty-three a breath.

public const float SlowerHz = 0.043

Field Value

float

SlowerWaveX

The pulse's phase over the ground: cycles a metre along world x and z, for each beat.

public const float SlowerWaveX = -0.021

Field Value

float

SlowerWaveZ

The pulse's phase over the ground: cycles a metre along world x and z, for each beat.

public const float SlowerWaveZ = 0.033

Field Value

float

WrapSeconds

The motion clock's wrap the pulse is read on, seconds (WorldMotion.ShaderWrapSeconds; the shaders' FISH_MOTION_WRAP).

public const double WrapSeconds = 10000

Field Value

double

Methods

Colour(SceneGlowHue)

A tint's colour: the crystals' as their cave lights are; rune-light blue-white; faerie-light green-gold.

public static Color Colour(SceneGlowHue hue)

Parameters

hue SceneGlowHue

Returns

Color

Flicker(float, float, float)

The flicker at a moment of the shared motion clock (wrapped at WrapSeconds) for a glow at world (x, z): FlickerBase between flashes, up to 1 at a flash's height. Three crackles multiplied flash only where they meet (their product past FlashFrom), unevenly, a few times a second at most and often not for seconds.

public static float Flicker(float seconds, float x, float z)

Parameters

seconds float
x float
z float

Returns

float

Flickers(uint)

Whether a glow's seed asks for the flicker (FlickerBit) rather than the pulse.

public static bool Flickers(uint seed)

Parameters

seed uint

Returns

bool

HueOf(uint)

A glow's tint (an emitter's seed bits 8–10); 6 and 7 read as rune-light.

public static SceneGlowHue HueOf(uint seed)

Parameters

seed uint

Returns

SceneGlowHue

Light(float, Vector3, float, bool, bool)

A glow's light at a moment: Intensity × its pulse (its flicker when flickers) × how much shows (all of it underground).

public static float Light(float seconds, Vector3 at, float visibility, bool underground, bool flickers = false)

Parameters

seconds float
at Vector3
visibility float
underground bool
flickers bool

Returns

float

Pulse(float, float, float)

The pulse at a moment of the shared motion clock (seconds, wrapped at WrapSeconds) for a glow at world (x, z): between 0.56 and 1, smooth in both time and place.

public static float Pulse(float seconds, float x, float z)

Parameters

seconds float
x float
z float

Returns

float

Visibility(float)

How much of a glow shows with the main sun at sunHeight (the sine of its elevation): none by day, DuskShare by the time the lamps light, all of it in the night.

public static float Visibility(float sunHeight)

Parameters

sunHeight float

Returns

float

Wave(float, Vector3, bool)

A glow's wave at a moment: the flicker for a glow that flickers, else the pulse.

public static float Wave(float seconds, Vector3 at, bool flickers)

Parameters

seconds float
at Vector3
flickers bool

Returns

float

WithCrystalHue(uint, int)

A seed carrying a crystal's light (crystalHue 0 violet, 1 blue, 2 green, 3 amber, as a Crystal's), or for −1 one of the four by the seed itself (bits 8–9 kept, bit 10 cleared).

public static uint WithCrystalHue(uint seed, int crystalHue)

Parameters

seed uint
crystalHue int

Returns

uint

WithFlicker(uint, bool)

A seed that flickers or pulses as flickers says, the rest of it kept (the bit always set or cleared, never the hash's).

public static uint WithFlicker(uint seed, bool flickers)

Parameters

seed uint
flickers bool

Returns

uint

WithHue(uint, SceneGlowHue)

A seed carrying a glow's tint in bits 8–10, the rest of it kept.

public static uint WithHue(uint seed, SceneGlowHue hue)

Parameters

seed uint
hue SceneGlowHue

Returns

uint