Jump to content

mesh scene light problem


Recommended Posts

Im having a problem creating a type Ribbon mesh, the light is changing the colors that i assign with ColorKind, how could i solve this problem? I want the original colors of the mesh that im adding (not being modified by the light of the scene)

In this example, the mesh is not type Ribbon. But shows the same problem, because the sphere color is yellow and it should be red/green.


please help me.


Link to comment
Share on other sites

As you said, this has nothing to do with ribbons... neither with spheres,

but only with the way colors are valued : every rgb value is to be set in the range 0 .. 1 and not in the range 0 .. 255  like explained in the doc : https://doc.babylonjs.com/api/classes/babylon.color4#constructor


So https://playground.babylonjs.com/#3HYA35#1

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.

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.


  • Recently Browsing   0 members

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