Emits a cone of light from a point, like a flashlight or stage spotlight:

// Create a spotlight
const spotLight = new BABYLON.SpotLight("spotLight",
    new BABYLON.Vector3(0, 10, 0),     // Position
    new BABYLON.Vector3(0, -1, 0),     // Direction (pointing down)
    Math.PI / 3,                        // Cone angle in radians
    2,                                  // Exponent (falloff within the cone)
    scene
);

spotLight.diffuse = new BABYLON.Color3(1, 1, 1);
spotLight.intensity = 1.5;