Dieterich Posted November 26, 2018 Share Posted November 26, 2018 Hi! Why the color is not applied correctly in the material? I plan to apply a dark green color, but this being displayed a much lighter color, what can I do to fix this? RGB(0, 102, 0) https://www.babylonjs-playground.com/#B7B3UL#1 Quote Link to comment Share on other sites More sharing options...
babbleon Posted November 26, 2018 Share Posted November 26, 2018 try: matt.diffuseColor = new BABYLON.Color3(0, 102/255, 0); Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted November 26, 2018 Author Share Posted November 26, 2018 @babbleon and the hexadecimal? matt.diffuseColor = new BABYLON.Color4.FromHexString("#ff006600") Quote Link to comment Share on other sites More sharing options...
babbleon Posted November 26, 2018 Share Posted November 26, 2018 how about this? matt.diffuseColor = new BABYLON.Color4.FromHexString("#006600FF") Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted November 26, 2018 Author Share Posted November 26, 2018 ? ? ? hehehehe I change de position thanks @babbleon !! so helpfull! babbleon and Sebavan 2 Quote Link to comment Share on other sites More sharing options...
babbleon Posted November 26, 2018 Share Posted November 26, 2018 No problem & you're welcome. ? Dieterich 1 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.