Skip to main content
Glama

lightprobe-generate-grid

Generate a 3D grid of light probes within local light influence ranges, using density gradients for optimal placement and raycasting to avoid geometry.

Instructions

Generate Light Probes in a 3D grid within local light influence ranges. Supports density gradient: denser probes near light centers, sparser at edges. Scans Point/Spot/Area lights, skips Directional lights. Uses raycasting to find ground level and Physics.CheckSphere to avoid placing probes inside geometry. Use 'lightprobe-analyze' first to get recommended spacing values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spacingXZNoHorizontal spacing between probes. Default: 33
spacingYNoVertical spacing between probes. Default: 22
heightLevelsNoNumber of vertical layers of probes above ground.3
groundOffsetNoHeight offset from ground for the first probe layer.0.5
groupNameNoName of the LightProbeGroup GameObject to create.LightProbeGroup_Auto
insideCheckRadiusNoRadius for CheckSphere to reject probes inside geometry. Set to 0 to disable.0.300000012
useDensityGradientNoEnable density gradient: denser probes near light centers (d<0.4 range → half spacing), standard spacing at mid-range (0.4-0.8), sparser at edges (>0.8 → double spacing). When false, uses uniform spacingXZ everywhere.true

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server