Table of Contents

Class IndoorRooms

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The rooms round the camera (SceneRoom, baked by the cut), handed to the lit shaders so a room is darker than the day outside it: inside, the sky's light reaches only through the windows and the door (FishIndoor.hlsl), and the room's own hearth and candles (SiteLightPool's Indoor lights) do the rest.

public static class IndoorRooms
Inheritance
IndoorRooms
Inherited Members

Remarks

The nearest MaxRooms within Reach, as world-to-box matrices (_FishRooms, the box the unit cube, _FishRoomCount), refound when the camera has moved a few metres or a scene came or went. IndoorAt(Vector3) answers the same for the camera's own ambient (SkySystem). Play mode, client only.

Fields

FadeShare

The share of a room's half-size, in from its walls, over which indoors fades in (FishIndoor.hlsl's twin).

public const float FadeShare = 0.2

Field Value

float

MaxRooms

Twin of FishIndoor.hlsl's FISH_MAX_ROOMS.

public const int MaxRooms = 16

Field Value

int

Reach

public const float Reach = 60

Field Value

float

Methods

IndoorAt(Vector3)

How far inside a room a point is, 0 outside … 1 well in (the shader's own measure, FishIndoor).

public static float IndoorAt(Vector3 at)

Parameters

at Vector3

Returns

float