private Vector3 colorFilter | Colour weights used when measuring darkness. |
private ComputeShader computeShader | Compute shader that measures how dark the view is. |
private float darkDefinition | Brightness below which a pixel counts as dark. |
private float directionMagnitude | Length of the raw spawn ray direction, used to normalise it. |
private float downSampleScale | Scale of the downsampled image used to measure darkness. |
private float forwardWeight | How strongly spawn rays point forward from the head. Higher means a narrower cone. |
private float maxAngleToSpawn | Minimum surface normal Y for a spawn, set from an angle in the inspector. |
private float maximumSpawnInterval | Longest wait between spawns in one batch. |
private float maxTotalDarkness | Darkness reading above which the compute shader reader triggers a spawn, 0 to 1. |
private float minimumSpawnInterval | Shortest wait between spawns in one batch. |
private float platformLightRangeRatio | Multiplier on light ranges used by PlatformLightDarknessReader. |
private Dictionary<uint, int> playerSpawnCount | Live spawned count per player ID. |
private uint prefabToSpawn | Hash of the prefab spawned in the dark. |
private float raycastDistance | How far from the head spawn rays reach. |
private float readDarknessFrequency | Seconds between darkness readings. Defaults to 60. |
private float spawnCooldown | Obsolete cooldown field. Not read here. |
private TriangularDistributionInt spawnCount | Random number of spawns tried per batch. |
private Dictionary<uint, uint> spawnedToPlayer | Which player each spawned entity belongs to. |
private int spawnLimitPerPlayer | Most live spawns one player can have. Defaults to 10. |
private LayerMask targetMask | Layers spawn rays can land on. |