Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created June 19, 2022 00:41
Show Gist options
  • Save flushpot1125/7fb51c90fa5a33cd1f4e5f895511f244 to your computer and use it in GitHub Desktop.
Save flushpot1125/7fb51c90fa5a33cd1f4e5f895511f244 to your computer and use it in GitHub Desktop.
//Referred from https://playground.babylonjs.com/#0YT4XN#5
var pointLight = new BABYLON.PointLight("light1", new BABYLON.Vector3(0, 0, 0), scene);
pointLight.intensity = 2;
pointLight.diffuse = new BABYLON.Color3(0.59, 0.48, 0.33)
pointLight.parent = sphere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment