Art Vandelay Posted August 2, 2017 Share Posted August 2, 2017 Hi, I couldn't seem to find an answer to this question I want to create a light source that has a specific shape, or make an object also be a light source. Whichever. How would I do that? Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Arte Posted August 2, 2017 Share Posted August 2, 2017 Hi Art Vandelay, var light = new BABYLON.PointLight("light", new BABYLON.Vector3(0, 10, 0), scene); var lightShape = BABYLON.Mesh.CreateSphere("lightShape", 16, 0.5, scene); light.parent = lightShape; or light.position = lightShape.position; Quote Link to comment Share on other sites More sharing options...
Art Vandelay Posted August 2, 2017 Author Share Posted August 2, 2017 Perfect. Thanks! Quote Link to comment Share on other sites More sharing options...
Arte Posted August 2, 2017 Share Posted August 2, 2017 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.