Table of Contents

Interface IShadowCacheCaster

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

A renderer whose static shadow casters the cached main-light shadows (CachedMainLightShadows) draw into their cache: the GPU-driven terrain and props.

public interface IShadowCacheCaster

Remarks

The cache is core rendering; what it caches belongs to whichever world module draws it. A caster joins ShadowCacheCasters while it is live, so the cache iterates casters, never a module's renderer type (Phase 4 of the core and modules plan, 2026-11-17).

Properties

ServesShadowCache

Whether this caster has static casters for the cache this frame.

bool ServesShadowCache { get; }

Property Value

bool

ShadowContentVersion

A version of the static content; the cache redraws when any caster's changes.

int ShadowContentVersion { get; }

Property Value

int

Methods

RecordShadowCacheCull(CommandBuffer, Camera, Vector3, Vector4[], Vector4)

Culls this caster's static casters against a cache window.

void RecordShadowCacheCull(CommandBuffer cmd, Camera camera, Vector3 anchor, Vector4[] planes, Vector4 light)

Parameters

cmd CommandBuffer
camera Camera
anchor Vector3
planes Vector4[]
light Vector4

RecordStaticShadowCasters(RasterCommandBuffer)

Draws this caster's static casters into the current cache tile; returns the draws issued.

int RecordStaticShadowCasters(RasterCommandBuffer cmd)

Parameters

cmd RasterCommandBuffer

Returns

int