Jump to content

Having a nice light gradient on shapes


Quadear
 Share

Recommended Posts

Hello,

Right now, when I'm using a standard hemispheric light, and  my cube not ugly, but really simple:

- the top face directly on contact with light is white

- the sides faces are a bit grey-er

- the bottom face is dark.

http://www.babylonjs-playground.com/#7PLE56

Quite simple, hey ? Is there a way for the sides faces, instead of being grey uniformly, have a smooth gradient, whiter at the top of the face and Greyer at the bottm of it ?

Should I need to change the light, the material ? How can I do that ?

Thanks a lot !

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...