Created
June 19, 2022 00:41
-
-
Save flushpot1125/7fb51c90fa5a33cd1f4e5f895511f244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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