Table of Contents

Class FishWorldPassesFeature

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The world's shared render passes, on every renderer: the depth pyramid (occlusion culling for instanced props), the shadow cascade bounds (casters skip cascades that do not need them), the WebGPU light table (every lit pass reads its additional lights and probes from it) and the cached main-light shadows.

public class FishWorldPassesFeature : ScriptableRendererFeature, IDisposable
Inheritance
Object
ScriptableObject
ScriptableRendererFeature
FishWorldPassesFeature
Implements
Inherited Members
ScriptableRendererFeature.OnCameraPreCull(ScriptableRenderer, in CameraData)
ScriptableRendererFeature.Dispose()
ScriptableRendererFeature.isActive
ScriptableRendererFeature.useIntermediateTextures
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

These were queued by FishCloudsFeature, the one feature every renderer happened to carry, so the clouds owned the world's lighting: a game without the weather module would have lost its light table and shadow cache with them. They are core now (Phase 4 of the core and modules plan, 2026-11-17), and the clouds draw clouds.

Fields

PassesCompute

[Tooltip("The compute holding the depth pyramid and light table kernels (Assets/FishMMO/Shaders/FishWorldPasses.compute). Left empty, the passes find it by path in the editor; a build needs it assigned.")]
[FormerlySerializedAs("PassesCompute")]
public ComputeShader PassesCompute

Field Value

ComputeShader

ShadowCacheMergeShader

[Tooltip("The cached main-light shadows' merge shader (Hidden/FishMMO/Shadow Cache Merge). Referenced here so a build carries it: CachedMainLightShadows merges its cached static casters into URP's shadow map with it.")]
public Shader ShadowCacheMergeShader

Field Value

Shader

SkylightShaftsShader

[Tooltip("FishMMO/World/Cave Skylight Shafts: the daylight's shafts and the dust motes in them under the openings in caves' roofs near the camera (CaveSkylights). Core lighting (Phase 4, 2026-11-18: moved off the terrain profile). Referenced here so a build carries it; empty, CaveSkylights finds it by name, which only works in the editor.")]
public Shader SkylightShaftsShader

Field Value

Shader

Properties

Compute

The compute the passes take their kernels from, as the live feature assigned it.

public static ComputeShader Compute { get; }

Property Value

ComputeShader

SkylightShafts

The cave skylights' shaft shader, as the live feature assigned it.

public static Shader SkylightShafts { get; }

Property Value

Shader

Methods

AddRenderPasses(ScriptableRenderer, ref RenderingData)

public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)

Parameters

renderer ScriptableRenderer
renderingData RenderingData

Create()

public override void Create()