Effects ‐ Proxy shadow casters - ow-mods/outer-wilds-unity-wiki GitHub Wiki

Purpose

Proxy shadows render farther away (1200m) compared to normal shadows (300m) for directional lights (the sun). In exchange, these shadows are lower quality and cost some performance.

Generally, you want to put proxy shadows on proxy (lower resolution) meshes. A good candidate is ones used for SectorProxy. If it wasn't obvious, less meshes and less triangles is better, so it's good to be selective. Batching probably helps here, but I haven't tried it.

Usage

Place the component next to your renderer.

You can also put a ProxyShadowCasterGroup on a parent GameObject and it will apply to all children.

[!WARNING] Proxy shadow casters do NOT respect sector culling. They will cast shadows even if the Renderer is disabled. Keep this in mind when optimizing.