Skip to content
07-848 2005

Application SDK

Spot Light

The next type of light we'll cover is the spot light. It represents conical spot light, such as the light coming from a flashlight.

Last updated 31 March 2026

The next type of light we'll cover is the spot light. It represents conical spot light, such as the light coming from a flashlight.

Parameters

In addition to the common parameters from Light Rectangle and Light Omni, the LightSpot plugin is affected by the following specific parameters:

  • coneAngle - The entire spot cone, in radians
  • penumbraAngle - The penumbra region, in radians; positive is outside the spot cone; negative is inside
  • dropOff - The dropOff attribute
  • falloffType - The type of transition in the penumbra region; 0 - linear; 1 - smooth cubic
  • barnDoor - true to produce a barn door effect.
  • barnDoorLeft - angle between the light direction and the left barn door
  • barnDoorRight - angle between the light direction and the right barn door
  • barnDoorTop - angle between the light direction and the top barn door
  • barnDoorBottom - angle between the light direction and the bottom barn door
  • useDecayRegions - True to use decay regions.
  • startDistance1 - Start of first decay region
  • endDistance1 - End of first decay region
  • startDistance2 - Start of second decay region
  • endDistance2 - End of second decay region
  • startDistance3 - Start of third decay region
  • endDistance3 - End of third decay region

Example

Here we'll show how to add a LightSpot to a scene.

Python

C++

C#.NET

Node.js

Result

The scene used for this render is called "Lighting_Spot.vrscene" and can be found in the scene bundle (comments on the different parameters available inside).