Create a point light in Babylon.js 2.0

Example of creating a point light in Babylon.js 2.0
light = new BABYLON.PointLight("Omni1", new BABYLON.Vector3(0, 0, 0), scene);
light.diffuse = new BABYLON.Color3(0, 0, 0.1);
light.specular = new BABYLON.Color3(1, 1, 1);
light.intensity = 2;

Responses

0 Replies