point_light
A light at the object's position: in every direction (a bulb, a fire), or a spotlight cone (a flashlight, a headlight) when cone is set.
In scene text
point_light { color (1, 0.8, 0.6) intensity 1 range 1 }Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.
Fields 25
| Field | Type | Unit / range | What it does |
|---|---|---|---|
color | colour (r, g, b) | — | Light color, 0...1 per channel. |
intensity | number | lm, 0 … 1 | Brightness in lumens, as on a real bulb's box: a candle 12, a 40 W bulb 450, a 60 W bulb 800, a 100 W bulb or a work lamp 1600, a street lamp up its pole 5000 to 10000. Indoors and close to things a few hundred to 1600 is plenty: 9000 lm two metres from a bench burns it white while the room stays dark. |
range | number | m, 0.1 … 500 | Distance where the light fades out. |
cone | number | °, 0 … 179 | Spotlight cone, full angle in degrees (a flashlight is about 35, a headlight 50); 0 shines in every direction. It points along the object's +Z: rotate the object to aim it, rotation (90, 0, 0) points down. |
softness | number | 0 … 1 | Spotlight edge: 0 hard, 1 fades from the centre. |
length | number | m, 0 … 50 | A tube light this long along the object's +X (fluorescent tubes about 1.2): long soft pools of light and long highlights on wet or glossy surfaces. 0 is a point. |
width | number | m, 0 … 50 | With length, a glowing rectangle this wide along +Y (light panel, window, screen), shining toward +Z. |
room_center | (x, y, z) | m | World-space centre of the light room box, independent of lamp placement. |
room_size | (x, y, z) | — | Full XYZ room box dimensions: all positive, or (0,0,0) to disable. |
room_mode | text | — | none |
beam | text | — | auto |
spill | number | 0 … 0.45 | A reflector beam's wide spill in the same light: its strength as a share of the hot spot (a hand torch about 0.03 to 0.06; 0 none). With spill_cone. One light and one shadow map for beam and spill: never add a second lamp for a torch's spill. |
spill_cone | number | °, 0 … 179 | How wide the spill reaches, full angle in degrees (about 100 for a hand torch); wider than cone, which stays the beam's own. |
shadows | true / false | — | Casts shadows (a place in the shadow atlas among the lamps that do). false for fills that only lift the dark: a window's sky glow, a bounce card. They then cost no shadow map. |
baked | true / false | — | Baked into the light_volume around it: a still lamp whose light on still things is precomputed (with real shadows) instead of shaded every frame, and needs no shadow map. Its brightness may still change (power on/off): the volume follows it. Leave moving or flickering lamps live. |
emitter_radius | number | m, 0 … 100 | Finite spherical emitter radius: soft near-field attenuation and shadow filtering for area-ish bulbs/panels; 0 is a point. Range is measured from the centre. |
real_falloff | true / false | — | The real inverse square law: light = strength / distance², so a bulb lights its own shade, table and the wall beside it strongly and the far wall weakly (a real lamp's pool). false: the engine's first lamps, strength / (distance² + 1): close surfaces get far less than real, the room is lit evenly. A light added with the tools has it on; one written in scene text without this line reads false (scenes saved before it existed keep their tuned look), so write real_falloff true on every lamp of new work. Turning it on in an old scene: surfaces within about a metre of the lamp get brighter (2 x at 1 m, 5 x at 50 cm), so lower the intensity or the exposure to taste. |
strobe | number | Hz, 0 … 30 | A flashing light: flashes a second (0 steady). A patrol car's light bar: red and blue lamps at 2 with strobe_phase 0 and 0.5 and strobe_pulses 2; a beacon 1; an alarm 3. |
strobe_phase | number | 0 … 1 | Where in its cycle a flashing light starts: two lamps half a cycle apart (0 and 0.5) take turns. |
strobe_on | number | 0.01 … 1 | The share of each cycle a flashing light is lit. |
strobe_pulses | number | 1 … 4 | Quick pulses in each lit share (2: a light bar's double flash). |
flicker | number | 0 … 1 | A lamp on a failing or loaded supply: 0 steady; 0.3 a generator's bulbs (a ripple, slow surges, a short dip now and then as the load bites); 1 failing. |
flicker_circuit | number | 0 … 10000 | Lamps with the same circuit number (not 0) waver together, as the bulbs on one generator; 0: on its own. |
flare | number | 0 … 4 | Its lens flare when the camera's gameplay flares are on (camera_look flares): 1 by its brightness at the camera, 0 none (a fill light, a bounce card), more for a beacon or a glowing pickup. |
air | number | 0 … 1 | How strongly it lights the haze and mist it shines through (its light shaft): 1 as the air would; 0 none. Not set: 0.3 for a light tagged flashlight (a torch at the eye: the mist in front of the lens would otherwise glow like a wall over what the beam lights), 1 for the rest. |
Arcwright Beta 3 (0.5.0) · generated from the engine source (026429ab6)Something wrong or missing? Tell us