In the BBJS Documentation, it says .range is for controling how far light travels.
However, when I run the following Code:
var BABYLON = require("@babylonjs/core/Legacy/legacy")
var light1 = new BABYLON.SpotLight("spotLight1", new BABYLON.Vector3(1, 1, 1), new BABYLON.Vector3(0, -1, 0), Math.PI / 2, 50, scene)
light1.diffuse = new BABYLON.Color3(1, 1, 1)
light1.specular = new BABYLON.Color3(1 , 1, 1)
light1.intensity = 100
light1.range = 100
The light source works, however .range doesnt. Any ideas?
Thanks,
Source